本文整理汇总了Java中com.google.gwt.inject.client.multibindings.GinMultibinder.newSetBinder方法的典型用法代码示例。如果您正苦于以下问题:Java GinMultibinder.newSetBinder方法的具体用法?Java GinMultibinder.newSetBinder怎么用?Java GinMultibinder.newSetBinder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.gwt.inject.client.multibindings.GinMultibinder
的用法示例。
在下文中一共展示了GinMultibinder.newSetBinder方法的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);
}
示例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);
}
示例3: 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);
}
示例4: 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);
}
示例5: 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();
}
示例6: 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);
}
示例7: 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);
}
示例8: 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);
}
示例9: 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);
}
示例10: 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);
}
示例11: 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);
}
示例12: 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);
}
示例13: configure
import com.google.gwt.inject.client.multibindings.GinMultibinder; //导入方法依赖的package包/类
/** {@inheritDoc} */
@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);
}
示例14: configure
import com.google.gwt.inject.client.multibindings.GinMultibinder; //导入方法依赖的package包/类
@Override
protected void configure() {
bind(FormatterPreferencePageView.class)
.to(FormatterPreferencePageViewImpl.class)
.in(Singleton.class);
final GinMultibinder<PreferencePagePresenter> prefBinder =
GinMultibinder.newSetBinder(binder(), PreferencePagePresenter.class);
prefBinder.addBinding().to(FormatterPreferencePagePresenter.class);
}
示例15: configure
import com.google.gwt.inject.client.multibindings.GinMultibinder; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override
protected void configure() {
bind(YamlServiceClient.class).to(YamlServiceClientImpl.class).in(Singleton.class);
bind(YamlExtensionManagerView.class).to(YamlExtensionManagerViewImpl.class).in(Singleton.class);
GinMultibinder<PreferencePagePresenter> prefBinder =
GinMultibinder.newSetBinder(binder(), PreferencePagePresenter.class);
prefBinder.addBinding().to(YamlExtensionManagerPresenter.class);
}