Refine search
protected void bindCommonIntegration() { bind(ITypeResolver.class).to(UiCommonDefaultTypeResolver.class).asEagerSingleton(); bind(FrontendEventsHandlerImpl.class).in(Singleton.class); bind(FrontendFailureEventListener.class).in(Singleton.class); bind(ILogger.class).to(LoggerImpl.class).in(Singleton.class); // User Options bind(OptionsModel.class).in(Singleton.class); bindCommonModelProviders(); bindConsoles(); }
@Override protected void configure() { bind(StartUpActionsProcessor.class).asEagerSingleton(); bind(ActionManager.class).to(ActionManagerImpl.class).in(Singleton.class); bind(FindActionView.class).to(FindActionViewImpl.class).in(Singleton.class); } }
@Override protected void configure() { bind(EventBus.class).to(SimpleEventBus.class).in(Singleton.class); bind(TokenFormatter.class).to(ParameterTokenFormatter.class).in(Singleton.class); bind(GoogleAnalytics.class).to(GoogleAnalyticsImpl.class).in(Singleton.class); // You will need to add this if you are using MVP // bind(RootPresenter.class).asEagerSingleton(); /** * this makes the sldeditor the default place to open. * <p>Rebind this if you want something else. */ bind(PlaceManager.class).to(SldEditorPlaceManager.class).in(Singleton.class); /** * Contains service calls to parse / validate / load / save SLD data */ bind(SldManager.class).to(SldManagerImpl.class).in(Singleton.class); /** * i18n */ bind(SldEditorExpertMessages.class).in(Singleton.class); } }
@Override protected void configure() { bind(AuthenticatedUser.class).toProvider(ClientSideAuthProvider.class); bind(RemoteCommandServiceAsync.class).toProvider(RemoteServiceProvider.class).in(Singleton.class); bind(Dispatcher.class).annotatedWith(Remote.class).to(RemoteDispatcher.class).in(Singleton.class); bind(DispatchEventSource.class).to(CacheManager.class); bind(PageStateSerializer.class).in(Singleton.class); bind(EventBus.class).to(LoggingEventBus.class).in(Singleton.class); bind(StateProvider.class).to(GxtStateProvider.class); bind(Frame.class).annotatedWith(Root.class).to(AppFrameSet.class); bind(GalleryView.class).to(GalleryPage.class); }
@Override protected void configure() { bind(IconRegistry.class).to(IconRegistryImpl.class).in(Singleton.class); bind(DefaultIconsRegistrar.class).asEagerSingleton(); bind(FontAwesomeInjector.class).asEagerSingleton(); bind(BrowserTabCloseHandler.class).asEagerSingleton(); .build(WorkBenchControllerFactory.class)); bind(WorkspaceView.class).to(WorkspaceViewImpl.class).in(Singleton.class); bind(MainMenuView.class).to(MainMenuViewImpl.class).in(Singleton.class); bind(ToolbarView.class).to(ToolbarViewImpl.class); bind(ToolbarPresenter.class) .annotatedWith(MainToolbar.class) .to(ToolbarPresenter.class) .in(Singleton.class); .build(ConsoleButtonFactory.class)); bind(StatusPanelGroupView.class).to(StatusPanelGroupViewImpl.class).in(Singleton.class);
@Override protected void configure() { bind(EventBus.class).annotatedWith(Names.named("emite")).to(LoggingEventBus.class).in(Singleton.class); bind(XmppConnection.class).to(XmppConnectionBosh.class); bind(XmppSession.class).to(XmppSessionImpl.class); }
@Override protected void configure() { // Common apps install(new UtilsGinModule()); // modules install(new LoggerGinModule()); install(new AppenderGinModule()); // install(new OverviewGinModule()); bind(LogbackUiController.class).asEagerSingleton(); bind(INotificator.class).to(LogNotificator.class).asEagerSingleton(); } }
@Override protected void configure() { bind(PairChatManager.class).to(PairChatManagerImpl.class).asEagerSingleton(); bind(PresenceManager.class).to(PresenceManagerImpl.class).asEagerSingleton(); bind(SubscriptionManager.class).to(SubscriptionManagerImpl.class).asEagerSingleton(); bind(XmppRoster.class).to(XmppRosterImpl.class).asEagerSingleton(); }
@Override protected void configure() { bind(LoggerController.class).asEagerSingleton(); final GinMultibinder<IAppModule> multibinder = GinMultibinder.newSetBinder(binder(), IAppModule.class); multibinder.addBinding().to(LoggerModule.class).asEagerSingleton(); }
@SuppressWarnings("unchecked") @Override protected void configure() { // Safe to use unchecked RuntimeBindingsRegistry.class as its new instances are always a valid // substitution for any RuntimeBindingsRegistry<T>. bindAndExpose(bindingsRegistry()).to(RuntimeBindingsRegistry.class).in(Singleton.class); } }
@Override protected void configure() { bind(ConsoleOptionsFrontendPersister.class).to(ConsoleOptionsFrontendPersisterImpl.class).in(Singleton.class); bind(ConsoleUtils.class).to(ConsoleUtilsImpl.class).in(Singleton.class); bind(PluginActionButtonHandler.class).asEagerSingleton(); }
/** * Binds the components related with the federation configuration path */ private void bindFederation() { bindPresenter(FederationPresenter.class, FederationPresenter.MyView.class, NewFederationView.class, FederationPresenter.MyProxy.class); bind(FederationStore.class).to(FederationStoreImpl.class).in(Singleton.class); bind(DeploymentFederationStore.class).to(DeploymentFederationStoreImpl.class).in(Singleton.class); bind(DeploymentManager.class).in(Singleton.class); bind(FederationManager.class); } }
protected void configure() { // switchyard application bind(SwitchYardStore.class).to(SwitchYardStoreImpl.class).in(Singleton.class); bindPresenter(ConfigPresenter.class, ConfigPresenter.MyView.class, ConfigView.class, ConfigPresenter.MyProxy.class); bindPresenter(ApplicationPresenter.class, ApplicationPresenter.MyView.class, ApplicationView.class, ApplicationPresenter.MyProxy.class); bindPresenter(ArtifactPresenter.class, ArtifactPresenter.MyView.class, ArtifactReferencesView.class, ArtifactPresenter.MyProxy.class); bindPresenter(ServicePresenter.class, ServicePresenter.MyView.class, ServiceView.class, ServicePresenter.MyProxy.class); bindPresenter(ReferencePresenter.class, ReferencePresenter.MyView.class, ReferenceView.class, ReferencePresenter.MyProxy.class); bindPresenter(MetricsPresenter.class, MetricsPresenter.MyView.class, MetricsView.class, MetricsPresenter.MyProxy.class); bindPresenter(RuntimePresenter.class, RuntimePresenter.MyView.class, RuntimeView.class, RuntimePresenter.MyProxy.class); // components bindPresenterWidgetFactory(ComponentPresenter.PresenterFactory.class, ComponentConfigurationPresenterFactory.class, ComponentPresenter.ViewFactory.class, ComponentConfigurationViewFactory.class); bind(ComponentProviders.class).in(Singleton.class); bind(DefaultComponentProvider.class).to(DefaultComponentProviderImpl.class); // messages bind(Messages.class).toProvider(MessagesProvider.class); }
proposalActionMapBinder.addBinding(JAVA_ORGANIZE_IMPORT_ID).to(OrganizeImportsAction.class); bind(NewJavaSourceFileView.class).to(NewJavaSourceFileViewImpl.class).in(Singleton.class); bind(QuickDocumentation.class).to(QuickDocPresenter.class).in(Singleton.class); bind(PomDiagnosticsRequestor.class).asEagerSingleton();
@Override protected void configure() { bind(DebuggerView.class).to(DebuggerViewImpl.class).in(Singleton.class); bind(EvaluateExpressionView.class).to(EvaluateExpressionViewImpl.class).in(Singleton.class); bind(BreakpointConfigurationView.class).to(BreakpointConfigurationViewImpl.class); bind(EditDebugConfigurationsView.class) .to(EditDebugConfigurationsViewImpl.class) .in(Singleton.class); .to(DebugConfigurationsManagerImpl.class) .in(Singleton.class); install( new GinFactoryModuleBuilder() .annotatedWith(DebuggerWatchToolBar.class) .to(ToolbarPresenter.class) .in(Singleton.class); .annotatedWith(DebuggerToolbar.class) .to(ToolbarPresenter.class) .in(Singleton.class);
@Override protected void configure() { bind(RoomChatManager.class).to(RoomChatManagerImpl.class).asEagerSingleton(); }
@Override protected void configure() { bind(AppenderController.class).asEagerSingleton(); final GinMultibinder<IAppModule> multibinder = GinMultibinder.newSetBinder(binder(), IAppModule.class); multibinder.addBinding().to(AppenderModule.class).asEagerSingleton(); }
@Override protected void configure() { bind(JsIntervalSetter.class).asEagerSingleton(); bind(GreetingPartView.class).to(GreetingPartViewImpl.class).in(Singleton.class); bind(FactoryServiceClient.class).to(FactoryServiceClientImpl.class).in(Singleton.class); } }