• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java AsyncRequestFactory类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.eclipse.che.ide.rest.AsyncRequestFactory的典型用法代码示例。如果您正苦于以下问题:Java AsyncRequestFactory类的具体用法?Java AsyncRequestFactory怎么用?Java AsyncRequestFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



AsyncRequestFactory类属于org.eclipse.che.ide.rest包,在下文中一共展示了AsyncRequestFactory类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: CountLinesAction

import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
/**
 * Constructor
 *
 * @param appContext the IDE application context
 * @param resources the JSON Example resources that contain the action icon
 * @param asyncRequestFactory asynchronous request factory for creating the server request
 * @param notificationManager the notification manager used to display the lines of code per file
 */
@Inject
public CountLinesAction(
    AppContext appContext,
    JsonExampleResources resources,
    AsyncRequestFactory asyncRequestFactory,
    NotificationManager notificationManager) {

  super(
      appContext,
      "Count JSON Lines of Code",
      "Counts lines of code for all JSON Files in the project",
      resources.icon());

  this.appContext = appContext;
  this.asyncRequestFactory = asyncRequestFactory;
  this.notificationManager = notificationManager;
  this.unmarshaller = new StringMapUnmarshaller();
}
 
开发者ID:eclipse,项目名称:che-archetypes,代码行数:27,代码来源:CountLinesAction.java


示例2: MyServiceClient

import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
/**
 * Constructor.
 *
 * @param appContext the {@link AppContext}
 * @param asyncRequestFactory the {@link AsyncRequestFactory} that is used to create requests
 * @param loaderFactory the {@link LoaderFactory} for displaying a message while waiting for a
 *     response
 */
@Inject
public MyServiceClient(
    final AppContext appContext,
    final AsyncRequestFactory asyncRequestFactory,
    final LoaderFactory loaderFactory) {

  this.appContext = appContext;
  this.asyncRequestFactory = asyncRequestFactory;
  this.loaderFactory = loaderFactory;
}
 
开发者ID:eclipse,项目名称:che-archetypes,代码行数:19,代码来源:MyServiceClient.java


示例3: ProjectTypeRegistryImpl

import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Inject
public ProjectTypeRegistryImpl(
    AsyncRequestFactory asyncRequestFactory,
    DtoUnmarshallerFactory dtoUnmarshallerFactory,
    AppContext appContext,
    EventBus eventBus) {
  this.asyncRequestFactory = asyncRequestFactory;
  this.dtoUnmarshallerFactory = dtoUnmarshallerFactory;
  this.appContext = appContext;
  this.eventBus = eventBus;

  projectTypes = new HashMap<>();

  eventBus.addHandler(
      BasicIDEInitializedEvent.TYPE,
      e -> {
        if (RUNNING == appContext.getWorkspace().getStatus()) {
          registerProjectTypes();
        }
      });

  eventBus.addHandler(WsAgentServerRunningEvent.TYPE, e -> registerProjectTypes());
  eventBus.addHandler(WsAgentServerStoppedEvent.TYPE, e -> projectTypes.clear());
}
 
开发者ID:eclipse,项目名称:che,代码行数:25,代码来源:ProjectTypeRegistryImpl.java


示例4: MainPagePresenter

import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Inject
public MainPagePresenter(
    DtoUnmarshallerFactory dtoUnmarshallerFactory,
    NotificationManager notificationManager,
    CoreLocalizationConstant locale,
    MainPageView view,
    ImportWizardRegistry importWizardRegistry,
    AppContext appContext,
    AsyncRequestFactory asyncRequestFactory) {
  super();
  this.view = view;
  this.dtoUnmarshallerFactory = dtoUnmarshallerFactory;
  this.notificationManager = notificationManager;
  this.locale = locale;
  this.importWizardRegistry = importWizardRegistry;
  this.appContext = appContext;
  this.asyncRequestFactory = asyncRequestFactory;

  view.setDelegate(this);
}
 
开发者ID:eclipse,项目名称:che,代码行数:21,代码来源:MainPagePresenter.java


示例5: AppListPresenter

import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
/**
 * Creates an App list part presenter with GWT injected App list view, login presenter, and extension resources
 */
@Inject
public AppListPresenter(@Named("restContext") String restContext, AppListView appListView, @Assisted String title,
                        LoginPresenter loginPresenter, AppFactoryExtensionResources extensionResources,
                        DtoFactory dtoFactory, DtoUnmarshallerFactory unmarshallerFactory, AsyncRequestFactory
                                requestFactory, NotificationManager notificationManager) {
    this.appListView = appListView;
    this.appListView.setDelegate(this);
    this.appListView.setTitle(title);
    this.title = title;
    this.loginPresenter = loginPresenter;
    this.extensionResources = extensionResources;
    this.dtoFactory = dtoFactory;
    this.unmarshallerFactory = unmarshallerFactory;
    this.requestFactory = requestFactory;
    this.restContext = restContext;
    this.notificationManager = notificationManager;
}
 
开发者ID:wso2,项目名称:cloud-dev-studio,代码行数:21,代码来源:AppListPresenter.java


示例6: JsonExampleCodeAssistClient

import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
/**
 * Constructor.
 *
 * @param appContext the IDE application context
 * @param asyncRequestFactory asynchronous request factory for creating the server request
 * @param loaderFactory the loader factory for displaying a message during loading
 */
@Inject
public JsonExampleCodeAssistClient(
    AppContext appContext, AsyncRequestFactory asyncRequestFactory, LoaderFactory loaderFactory) {
  this.appContext = appContext;
  this.asyncRequestFactory = asyncRequestFactory;
  this.loaderFactory = loaderFactory;
}
 
开发者ID:eclipse,项目名称:che-archetypes,代码行数:15,代码来源:JsonExampleCodeAssistClient.java


示例7: BitbucketClientService

import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Inject
protected BitbucketClientService(
    AppContext appContext,
    LoaderFactory loaderFactory,
    AsyncRequestFactory asyncRequestFactory,
    DtoUnmarshallerFactory dtoUnmarshallerFactory,
    @RestContext String baseUrl) {
  this.appContext = appContext;
  this.dtoUnmarshallerFactory = dtoUnmarshallerFactory;
  this.loaderFactory = loaderFactory;
  this.asyncRequestFactory = asyncRequestFactory;
  this.baseUrl = baseUrl;
}
 
开发者ID:codenvy,项目名称:codenvy,代码行数:14,代码来源:BitbucketClientService.java


示例8: MicrosoftServiceClientImpl

import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Inject
public MicrosoftServiceClientImpl(
    DtoUnmarshallerFactory dtoUnmarshallerFactory,
    AsyncRequestFactory asyncRequestFactory,
    AppContext appContext,
    LoaderFactory loaderFactory) {
  this.dtoUnmarshallerFactory = dtoUnmarshallerFactory;
  this.asyncRequestFactory = asyncRequestFactory;
  this.appContext = appContext;
  this.loaderFactory = loaderFactory;
}
 
开发者ID:codenvy,项目名称:codenvy,代码行数:12,代码来源:MicrosoftServiceClientImpl.java


示例9: configure

import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Override
public void configure() {
  bind(KeycloakProvider.class).asEagerSingleton();
  bind(AsyncRequestFactory.class)
      .to(org.eclipse.che.multiuser.keycloak.ide.KeycloakAsyncRequestFactory.class);
  bind(SecurityTokenProvider.class).to(KeycloakSecurityTokenProvider.class);
}
 
开发者ID:eclipse,项目名称:che,代码行数:8,代码来源:KeycloakAuthGinModule.java


示例10: DebuggerServiceClientImpl

import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Inject
protected DebuggerServiceClientImpl(
    AppContext appContext,
    LoaderFactory loaderFactory,
    AsyncRequestFactory asyncRequestFactory,
    DtoUnmarshallerFactory dtoUnmarshallerFactory) {
  this.loaderFactory = loaderFactory;
  this.asyncRequestFactory = asyncRequestFactory;
  this.dtoUnmarshallerFactory = dtoUnmarshallerFactory;
  this.appContext = appContext;
}
 
开发者ID:eclipse,项目名称:che,代码行数:12,代码来源:DebuggerServiceClientImpl.java


示例11: OAuthServiceClient

import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Inject
public OAuthServiceClient(
    AppContext appContext,
    AsyncRequestFactory asyncRequestFactory,
    DtoUnmarshallerFactory unmarshallerFactory) {
  this.asyncRequestFactory = asyncRequestFactory;
  this.restContext = appContext.getMasterApiEndpoint() + "/oauth";
  this.unmarshallerFactory = unmarshallerFactory;
}
 
开发者ID:eclipse,项目名称:che,代码行数:10,代码来源:OAuthServiceClient.java


示例12: ProjectServiceClient

import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Inject
ProjectServiceClient(
    LoaderFactory loaderFactory,
    AsyncRequestFactory reqFactory,
    DtoFactory dtoFactory,
    DtoUnmarshallerFactory unmarshaller,
    AppContext appContext) {
  this.loaderFactory = loaderFactory;
  this.reqFactory = reqFactory;
  this.dtoFactory = dtoFactory;
  this.unmarshaller = unmarshaller;
  this.appContext = appContext;
}
 
开发者ID:eclipse,项目名称:che,代码行数:14,代码来源:ProjectServiceClient.java


示例13: ProjectTemplateRegistryImpl

import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Inject
ProjectTemplateRegistryImpl(
    DtoUnmarshallerFactory dtoUnmarshallerFactory,
    AsyncRequestFactory asyncRequestFactory,
    AppContext appContext) {
  this.dtoUnmarshallerFactory = dtoUnmarshallerFactory;
  this.asyncRequestFactory = asyncRequestFactory;
  this.appContext = appContext;

  templateDescriptors = new HashMap<>();
}
 
开发者ID:eclipse,项目名称:che,代码行数:12,代码来源:ProjectTemplateRegistryImpl.java


示例14: FactoryServiceClientImpl

import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Inject
public FactoryServiceClientImpl(
    AsyncRequestFactory asyncRequestFactory,
    DtoUnmarshallerFactory unmarshallerFactory,
    LoaderFactory loaderFactory) {
  this.asyncRequestFactory = asyncRequestFactory;
  this.unmarshallerFactory = unmarshallerFactory;
  this.loaderFactory = loaderFactory;
}
 
开发者ID:eclipse,项目名称:che,代码行数:10,代码来源:FactoryServiceClientImpl.java


示例15: WorkspaceServiceClient

import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Inject
private WorkspaceServiceClient(
    AppContext appContext,
    DtoUnmarshallerFactory dtoUnmarshallerFactory,
    DtoFactory dtoFactory,
    AsyncRequestFactory asyncRequestFactory,
    LoaderFactory loaderFactory) {
  this.dtoUnmarshallerFactory = dtoUnmarshallerFactory;
  this.dtoFactory = dtoFactory;
  this.asyncRequestFactory = asyncRequestFactory;
  this.loaderFactory = loaderFactory;
  this.baseHttpUrl = appContext.getMasterApiEndpoint() + "/workspace";
}
 
开发者ID:eclipse,项目名称:che,代码行数:14,代码来源:WorkspaceServiceClient.java


示例16: PreferencesManagerImpl

import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Inject
protected PreferencesManagerImpl(AsyncRequestFactory asyncRequestFactory, AppContext appContext) {
  this.asyncRequestFactory = asyncRequestFactory;
  this.persistedPreferences = new HashMap<>();
  this.changedPreferences = new HashMap<>();

  PREFERENCES_SERVICE_ENDPOINT = appContext.getMasterApiEndpoint() + "/preferences";
}
 
开发者ID:eclipse,项目名称:che,代码行数:9,代码来源:PreferencesManagerImpl.java


示例17: SshServiceClientImpl

import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Inject
protected SshServiceClientImpl(
    AppContext appContext,
    DtoFactory dtoFactory,
    AsyncRequestFactory asyncRequestFactory,
    DtoUnmarshallerFactory unmarshallerFactory) {
  this.dtoFactory = dtoFactory;
  this.asyncRequestFactory = asyncRequestFactory;
  this.unmarshallerFactory = unmarshallerFactory;
  this.sshApi = appContext.getMasterApiEndpoint() + "/ssh";
}
 
开发者ID:eclipse,项目名称:che,代码行数:12,代码来源:SshServiceClientImpl.java


示例18: CurrentUserInitializer

import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Inject
CurrentUserInitializer(
    PreferencesManagerImpl preferencesManager,
    CoreLocalizationConstant messages,
    AppContext appContext,
    AsyncRequestFactory asyncRequestFactory,
    DtoUnmarshallerFactory dtoUnmarshallerFactory) {
  this.preferencesManager = preferencesManager;
  this.messages = messages;
  this.appContext = appContext;
  this.asyncRequestFactory = asyncRequestFactory;
  this.dtoUnmarshallerFactory = dtoUnmarshallerFactory;
}
 
开发者ID:eclipse,项目名称:che,代码行数:14,代码来源:CurrentUserInitializer.java


示例19: WorkspaceLoadingTrackerImpl

import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Inject
public WorkspaceLoadingTrackerImpl(
    AppContext appContext,
    EventBus eventBus,
    ProcessesPanelPresenter processesPanelPresenter,
    MachineResources resources,
    WorkspaceLoadingTrackerView view,
    ProcessesListView processesListView,
    CoreLocalizationConstant localizationConstant,
    AsyncRequestFactory asyncRequestFactory) {
  this.appContext = appContext;
  this.processesPanelPresenter = processesPanelPresenter;
  this.resources = resources;
  this.view = view;
  this.processesListView = processesListView;
  this.localizationConstant = localizationConstant;
  this.asyncRequestFactory = asyncRequestFactory;
  this.eventBus = eventBus;

  view.setDelegate(this);

  eventBus.addHandler(WorkspaceStartingEvent.TYPE, this);
  eventBus.addHandler(WorkspaceRunningEvent.TYPE, this);
  eventBus.addHandler(WorkspaceStoppedEvent.TYPE, this);

  eventBus.addHandler(
      MachineRunningEvent.TYPE,
      event -> {
        processesListView.setLoadingMessage(
            localizationConstant.menuLoaderMachineRunning(event.getMachine().getName()));
      });

  eventBus.addHandler(InstallerStartingEvent.TYPE, this);
  eventBus.addHandler(InstallerRunningEvent.TYPE, this);
  eventBus.addHandler(InstallerFailedEvent.TYPE, this);

  eventBus.addHandler(MachineStatusChangedEvent.TYPE, this);

  Scheduler.get().scheduleDeferred(() -> loadInstallers());
}
 
开发者ID:eclipse,项目名称:che,代码行数:41,代码来源:WorkspaceLoadingTrackerImpl.java


示例20: LanguageServerRegistryServiceClient

import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Inject
public LanguageServerRegistryServiceClient(
    DtoUnmarshallerFactory unmarshallerFactory,
    AppContext appContext,
    AsyncRequestFactory asyncRequestFactory) {
  this.unmarshallerFactory = unmarshallerFactory;
  this.appContext = appContext;
  this.asyncRequestFactory = asyncRequestFactory;
}
 
开发者ID:eclipse,项目名称:che,代码行数:10,代码来源:LanguageServerRegistryServiceClient.java



注:本文中的org.eclipse.che.ide.rest.AsyncRequestFactory类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java XLog类代码示例发布时间:2022-05-22
下一篇:
Java OpenListener类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap