当前位置: 首页>>代码示例>>Java>>正文


Java GinMultibinder类代码示例

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


GinMultibinder类属于com.google.gwt.inject.client.multibindings包,在下文中一共展示了GinMultibinder类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: configure

import com.google.gwt.inject.client.multibindings.GinMultibinder; //导入依赖的package包/类
@Override
protected void configure() {
  final GinMapBinder<String, ContributionWorkflow> workflowBinder =
      GinMapBinder.newMapBinder(binder(), String.class, ContributionWorkflow.class);
  workflowBinder
      .addBinding(BitbucketHostingService.SERVICE_NAME)
      .to(com.codenvy.plugin.pullrequest.client.BitbucketContributionWorkflow.class);

  final GinMapBinder<String, StagesProvider> stagesProvider =
      GinMapBinder.newMapBinder(binder(), String.class, StagesProvider.class);
  stagesProvider
      .addBinding(BitbucketHostingService.SERVICE_NAME)
      .to(com.codenvy.plugin.pullrequest.client.BitbucketStagesProvider.class);

  final GinMultibinder<VcsHostingService> vcsHostingService =
      GinMultibinder.newSetBinder(binder(), VcsHostingService.class);
  vcsHostingService.addBinding().to(BitbucketHostingService.class);
}
 
开发者ID:codenvy,项目名称:codenvy,代码行数:19,代码来源:BitbucketPullRequestGinModule.java

示例2: configure

import com.google.gwt.inject.client.multibindings.GinMultibinder; //导入依赖的package包/类
@Override
protected void configure() {
  final GinMapBinder<String, ContributionWorkflow> workflowBinder =
      GinMapBinder.newMapBinder(binder(), String.class, ContributionWorkflow.class);
  workflowBinder
      .addBinding(MicrosoftHostingService.SERVICE_NAME)
      .to(VstsContributionWorkflow.class);

  final GinMapBinder<String, StagesProvider> stagesProvider =
      GinMapBinder.newMapBinder(binder(), String.class, StagesProvider.class);
  stagesProvider.addBinding(MicrosoftHostingService.SERVICE_NAME).to(VstsStagesProvider.class);

  final GinMultibinder<VcsHostingService> vcsHostingService =
      GinMultibinder.newSetBinder(binder(), VcsHostingService.class);
  vcsHostingService.addBinding().to(MicrosoftHostingService.class);
}
 
开发者ID:codenvy,项目名称:codenvy,代码行数:17,代码来源:VstsPullRequestGinModule.java

示例3: configure

import com.google.gwt.inject.client.multibindings.GinMultibinder; //导入依赖的package包/类
@Override
protected void configure() {

  bind(EditorBuilder.class).to(OrionEditorBuilder.class);

  install(
      new GinFactoryModuleBuilder()
          .build(new TypeLiteral<EditorWidgetFactory<OrionEditorWidget>>() {}));

  bind(OrionCodeEditWidgetOverlay.class).toProvider(OrionCodeEditWidgetProvider.class);
  bind(OrionEditorOptionsOverlay.class).toProvider(OrionEditorOptionsOverlayProvider.class);

  install(new GinFactoryModuleBuilder().build(ContentAssistWidgetFactory.class));

  GinMultibinder.newSetBinder(binder(), OrionPlugin.class)
      .addBinding()
      .to(JavaHighlightingOrionPlugin.class);

  // GinMultibinder.newSetBinder(binder(),
  // OrionPlugin.class).addBinding().to(LanguageServerHighlightingOrionPlugin.class);
}
 
开发者ID:eclipse,项目名称:che,代码行数:22,代码来源:OrionEditorGinModule.java

示例4: configure

import com.google.gwt.inject.client.multibindings.GinMultibinder; //导入依赖的package包/类
@Override
protected void configure() {
  bind(PreferencesManager.class).to(PreferencesManagerImpl.class).in(Singleton.class);
  GinMultibinder.newSetBinder(binder(), PreferencesManager.class)
      .addBinding()
      .to(PreferencesManagerImpl.class);

  bind(PreferencesView.class).to(PreferencesViewImpl.class).in(Singleton.class);

  GinMultibinder<PreferencePagePresenter> pagesBinder =
      GinMultibinder.newSetBinder(binder(), PreferencePagePresenter.class);
  pagesBinder.addBinding().to(IdeGeneralPreferencesPresenter.class);
  pagesBinder.addBinding().to(ExtensionManagerPresenter.class);

  bind(IdeGeneralPreferencesView.class)
      .to(IdeGeneralPreferencesViewImpl.class)
      .in(Singleton.class);
  bind(ExtensionManagerView.class).to(ExtensionManagerViewImpl.class).in(Singleton.class);
}
 
开发者ID:eclipse,项目名称:che,代码行数:20,代码来源:PreferencesApiModule.java

示例5: configure

import com.google.gwt.inject.client.multibindings.GinMultibinder; //导入依赖的package包/类
@Override
protected void configure() {
  final GinMapBinder<String, ContributionWorkflow> workflowBinder =
      GinMapBinder.newMapBinder(binder(), String.class, ContributionWorkflow.class);
  workflowBinder
      .addBinding(GitHubHostingService.SERVICE_NAME)
      .to(GitHubContributionWorkflow.class);

  final GinMapBinder<String, StagesProvider> stagesProvider =
      GinMapBinder.newMapBinder(binder(), String.class, StagesProvider.class);
  stagesProvider.addBinding(GitHubHostingService.SERVICE_NAME).to(GithubStagesProvider.class);

  final GinMultibinder<VcsHostingService> vcsHostingService =
      GinMultibinder.newSetBinder(binder(), VcsHostingService.class);
  vcsHostingService.addBinding().to(GitHubHostingService.class);
}
 
开发者ID:eclipse,项目名称:che,代码行数:17,代码来源:GithubPullRequestGinModule.java

示例6: configure

import com.google.gwt.inject.client.multibindings.GinMultibinder; //导入依赖的package包/类
@Override
    protected void configure() {
        install(new DefaultModule());
        install(new ApplicationModule());

        // DefaultPlaceManager Places
        bindConstant().annotatedWith(DefaultPlace.class).to(NameTokens.DEALS);
        bindConstant().annotatedWith(ErrorPlace.class).to(NameTokens.ERROR);
        bindConstant().annotatedWith(UnauthorizedPlace.class).to(NameTokens.UNAUTHORIZED);

        bind(I18nHelper.class).asEagerSingleton();
        bind(Bootstrapper.class).to(AuthBootstrapper.class).in(Singleton.class);
        bind(User.class).asEagerSingleton();

        GinMultibinder<RestyGwtRequestListener> requestListenerMultibinder = GinMultibinder.newSetBinder(binder(), RestyGwtRequestListener.class);
//        requestListenerMultibinder.addBinding().to(RestyGwtLoggingRequestListener.class);
        requestListenerMultibinder.addBinding().to(RequestLoaderRestyGwtListener.class);
        requestListenerMultibinder.addBinding().to(ErrorHandlingRestyGwtRequestListener.class);

//        bind(RequestLoader.class).to(StatusMessageRequestLoader.class).in(Singleton.class);
        bind(RequestLoader.class).to(DialogBoxRequestLoader.class).in(Singleton.class);
        bind(RestyGwtDispatcher.class).toProvider(RestyGwtDispatcher.Provider.class).asEagerSingleton();
        bind(Editor.class).toProvider(GameBuilderProvider.class).in(Singleton.class);
        bind(ResourceLoader.class).asEagerSingleton();
    }
 
开发者ID:Unisay,项目名称:preferanser,代码行数:26,代码来源:ClientModule.java

示例7: configure

import com.google.gwt.inject.client.multibindings.GinMultibinder; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
protected void configure() {
  GinMultibinder.newSetBinder(binder(), ProjectWizardRegistrar.class)
      .addBinding()
      .to(SampleWizardRegistrar.class);
  bind(NewXFileView.class).to(NewXFileViewImpl.class).in(Singleton.class);
}
 
开发者ID:eclipse,项目名称:che-archetypes,代码行数:9,代码来源:SampleWizardGinModule.java

示例8: configure

import com.google.gwt.inject.client.multibindings.GinMultibinder; //导入依赖的package包/类
@Override
protected void configure() {
  bind(SshKeyManagerView.class).to(SshKeyManagerViewImpl.class).in(Singleton.class);
  bind(UploadSshKeyView.class).to(UploadSshKeyViewImpl.class).in(Singleton.class);
  bind(ShowSshKeyView.class).to(ShowSshKeyViewImpl.class).in(Singleton.class);
  GinMultibinder<PreferencePagePresenter> prefBinder =
      GinMultibinder.newSetBinder(binder(), PreferencePagePresenter.class);
  prefBinder.addBinding().to(SshKeyManagerPresenter.class);
}
 
开发者ID:eclipse,项目名称:che,代码行数:10,代码来源:SshKeyGinModule.java

示例9: configure

import com.google.gwt.inject.client.multibindings.GinMultibinder; //导入依赖的package包/类
@Override
protected void configure() {
  install(new GinFactoryModuleBuilder().build(ResourceManager.ResourceFactory.class));
  install(new GinFactoryModuleBuilder().build(ResourceManager.ResourceManagerFactory.class));
  install(new GinFactoryModuleBuilder().build(ResourceNode.NodeFactory.class));

  GinMultibinder.newSetBinder(binder(), ResourceInterceptor.class)
      .addBinding()
      .to(ResourceInterceptor.NoOpInterceptor.class);

  GinMultibinder<NodeInterceptor> nodeInterceptors =
      GinMultibinder.newSetBinder(binder(), NodeInterceptor.class);
  nodeInterceptors.addBinding().to(DefaultNodeInterceptor.class);

  bind(SettingsProvider.class).to(DummySettingsProvider.class).in(Singleton.class);

  GinMultibinder<NodeIconProvider> themeBinder =
      GinMultibinder.newSetBinder(binder(), NodeIconProvider.class);
  themeBinder.addBinding().to(FileIconProvider.class);
  themeBinder.addBinding().to(DockerfileIconProvider.class);

  bind(TreeResourceRevealer.class);

  bind(ClipboardManager.class).to(ClipboardManagerImpl.class);

  GinMultibinder.newSetBinder(binder(), RenamingSupport.class);
}
 
开发者ID:eclipse,项目名称:che,代码行数:28,代码来源:ResourceApiModule.java

示例10: configure

import com.google.gwt.inject.client.multibindings.GinMultibinder; //导入依赖的package包/类
@Override
protected void configure() {
  bind(MacroRegistry.class).to(MacroRegistryImpl.class).in(Singleton.class);

  bind(MacroProcessor.class).to(MacroProcessorImpl.class).in(Singleton.class);

  GinMultibinder<Macro> macrosBinder = GinMultibinder.newSetBinder(binder(), Macro.class);
  macrosBinder.addBinding().to(EditorCurrentFileNameMacro.class);
  macrosBinder.addBinding().to(EditorCurrentFileBaseNameMacro.class);
  macrosBinder.addBinding().to(EditorCurrentFilePathMacro.class);
  macrosBinder.addBinding().to(EditorCurrentFileRelativePathMacro.class);
  macrosBinder.addBinding().to(EditorCurrentProjectNameMacro.class);
  macrosBinder.addBinding().to(EditorCurrentProjectTypeMacro.class);
  macrosBinder.addBinding().to(ExplorerCurrentFileNameMacro.class);
  macrosBinder.addBinding().to(ExplorerCurrentFileBaseNameMacro.class);
  macrosBinder.addBinding().to(ExplorerCurrentFilePathMacro.class);
  macrosBinder.addBinding().to(ExplorerCurrentFileParentPathMacro.class);
  macrosBinder.addBinding().to(ExplorerCurrentFileRelativePathMacro.class);
  macrosBinder.addBinding().to(ExplorerCurrentProjectNameMacro.class);
  macrosBinder.addBinding().to(ExplorerCurrentProjectTypeMacro.class);
  macrosBinder.addBinding().to(WorkspaceNameMacro.class);
  macrosBinder.addBinding().to(WorkspaceNamespaceMacro.class);
  macrosBinder.addBinding().to(DevMachineHostNameMacro.class);
  macrosBinder.addBinding().to(CurrentProjectPathMacro.class);
  macrosBinder.addBinding().to(CurrentProjectEldestParentPathMacro.class);
  macrosBinder.addBinding().to(CurrentProjectRelativePathMacro.class);

  bind(ServerAddressMacroRegistrar.class).asEagerSingleton();

  bind(MacroChooserView.class).to(MacroChooserViewImpl.class);
}
 
开发者ID:eclipse,项目名称:che,代码行数:32,代码来源:MacroApiModule.java

示例11: configure

import com.google.gwt.inject.client.multibindings.GinMultibinder; //导入依赖的package包/类
@Override
protected void configure() {
  bind(JsIntervalSetter.class).asEagerSingleton();

  bind(GreetingPartView.class).to(GreetingPartViewImpl.class).in(Singleton.class);
  bind(ImportFromConfigView.class).to(ImportFromConfigViewImpl.class).in(Singleton.class);
  bind(ShowWelcomePreferencePageView.class)
      .to(ShowWelcomePreferencePageViewImpl.class)
      .in(Singleton.class);
  bind(FactoryServiceClient.class).to(FactoryServiceClientImpl.class).in(Singleton.class);

  final GinMultibinder<PreferencePagePresenter> prefBinder =
      GinMultibinder.newSetBinder(binder(), PreferencePagePresenter.class);
  prefBinder.addBinding().to(ShowWelcomePreferencePagePresenter.class);
}
 
开发者ID:eclipse,项目名称:che,代码行数:16,代码来源:FactoryGinModule.java

示例12: configure

import com.google.gwt.inject.client.multibindings.GinMultibinder; //导入依赖的package包/类
@Override
protected void configure() {
  bind(AppStateManager.class).asEagerSingleton();

  GinMultibinder<StateComponent> stateComponents =
      GinMultibinder.newSetBinder(binder(), StateComponent.class);
  stateComponents.addBinding().to(WorkspacePresenter.class);
  stateComponents.addBinding().to(EditorAgentImpl.class);
  stateComponents.addBinding().to(ProjectExplorerStateComponent.class);
}
 
开发者ID:eclipse,项目名称:che,代码行数:11,代码来源:PersistenceApiModule.java

示例13: configure

import com.google.gwt.inject.client.multibindings.GinMultibinder; //导入依赖的package包/类
@Override
protected void configure() {

  GinMultibinder.newSetBinder(binder(), OAuth2Authenticator.class)
      .addBinding()
      .to(DefaultOAuthAuthenticatorImpl.class);

  bind(OAuth2AuthenticatorRegistry.class)
      .to(OAuth2AuthenticatorRegistryImpl.class)
      .in(Singleton.class);
}
 
开发者ID:eclipse,项目名称:che,代码行数:12,代码来源:OAuthApiModule.java

示例14: configure

import com.google.gwt.inject.client.multibindings.GinMultibinder; //导入依赖的package包/类
@Override
protected void configure() {
  bind(ThemeAgent.class).to(ThemeAgentImpl.class).in(Singleton.class);
  bind(ThemeAgent.class).asEagerSingleton();

  GinMultibinder<Theme> themeBinder = GinMultibinder.newSetBinder(binder(), Theme.class);
  themeBinder.addBinding().to(DarkTheme.class);
  themeBinder.addBinding().to(LightTheme.class);
}
 
开发者ID:eclipse,项目名称:che,代码行数:10,代码来源:ThemeApiModule.java

示例15: configure

import com.google.gwt.inject.client.multibindings.GinMultibinder; //导入依赖的package包/类
@Override
protected void configure() {
  GinMultibinder.newSetBinder(binder(), PreferencePagePresenter.class)
      .addBinding()
      .to(EditorPreferencePresenter.class);

  bind(EditorPreferenceView.class).to(EditorPreferenceViewImpl.class);
  bind(KeymapsPreferenceView.class).to(KeymapsPreferenceViewImpl.class);
  bind(KeyMapsPreferencePresenter.class);

  install(
      new GinFactoryModuleBuilder()
          .implement(EditorPreferenceSection.class, EditorPropertiesSectionPresenter.class)
          .build(EditorPreferenceSectionFactory.class));

  GinMultibinder<EditorPreferenceSection> editorPreferenceSectionsBinder =
      GinMultibinder.newSetBinder(binder(), EditorPreferenceSection.class);
  editorPreferenceSectionsBinder.addBinding().to(KeyMapsPreferencePresenter.class);
  editorPreferenceSectionsBinder.addBinding().to(EditorPropertiesPresenter.class);

  GinMultibinder<EditorPropertiesSection> editorPropertiesSectionBinder =
      GinMultibinder.newSetBinder(binder(), EditorPropertiesSection.class);

  editorPropertiesSectionBinder.addBinding().to(TabsPropertiesSection.class);
  editorPropertiesSectionBinder.addBinding().to(EditPropertiesSection.class);
  editorPropertiesSectionBinder.addBinding().to(LanguageToolsPropertiesSection.class);
  editorPropertiesSectionBinder.addBinding().to(TypingPropertiesSection.class);
  editorPropertiesSectionBinder.addBinding().to(WhiteSpacesPropertiesSection.class);
  editorPropertiesSectionBinder.addBinding().to(RulersPropertiesSection.class);
}
 
开发者ID:eclipse,项目名称:che,代码行数:31,代码来源:EditorPreferencesModule.java


注:本文中的com.google.gwt.inject.client.multibindings.GinMultibinder类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。