@Override protected void configure() { bind(CurrentWorkspaceManager.class).asEagerSingleton(); bind(WorkspaceStatusNotification.class).asEagerSingleton(); bind(StartWorkspaceNotification.class).asEagerSingleton(); bind(StartWsAgentNotification.class).asEagerSingleton(); } }
@Override protected void configure() { bind(ChatStateManager.class).asEagerSingleton(); }
@Override protected void configure() { bind(DtoRegistrar.class).asEagerSingleton(); } }
@Override protected void configure() { bind(WorkspaceStatusEventHandler.class).asEagerSingleton(); bind(MachineStatusEventHandler.class).asEagerSingleton(); bind(ServerStatusEventHandler.class).asEagerSingleton(); bind(InstallerLogHandler.class).asEagerSingleton(); bind(InstallerStatusEventHandler.class).asEagerSingleton(); bind(RuntimeLogHandler.class).asEagerSingleton(); } }
@Override protected void configure() { bind(ApplicationPresenter.class).asEagerSingleton(); bind(ApplicationPresenter.MyProxy.class).asEagerSingleton(); bind(ApplicationPresenter.MyView.class).to(ApplicationView.class); } }
@Override protected void configure() { bind(FileOpenCloseEventListener.class).asEagerSingleton(); bind(ClientServerEventService.class).to(ClientServerEventServiceImpl.class).in(Singleton.class); bind(EditorFileStatusNotificationOperation.class).asEagerSingleton(); bind(FileWatcherExcludesOperation.class).asEagerSingleton(); } }
@Override protected void configure() { bind(ProcessesOutputRestorer.class).asEagerSingleton(); bind(MachineFailNotifier.class).asEagerSingleton(); bind(MachineChooserView.class).to(MachineChooserViewImpl.class); bind(ModuleHolder.class).in(Singleton.class); bindConstant() .annotatedWith(Names.named("machine.extension.api_port")) .to(Constants.WS_AGENT_PORT); } }
@Override protected void configure() { this.binder = binder(); bindInternalBindingsRegistry(); bind(registererOf(multibindingType())).asEagerSingleton(); }
@Override protected void configure() { install(new AppGinModule()); // Module // bind(AdminBaseModule.class).in(Singleton.class); // App controller bind(AbstractUserAppController.class).to(AdminAppController.class); bind(AbstractAdminAppController.class).to(AdminAppController.class); bind(AuthTokenManager.class).to(AdminAppController.class); bind(AdminAppController.class).asEagerSingleton(); bind(AdminAppView.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(); }
@Override protected void configure() { bind(AppStateTracker.class).asEagerSingleton(); bind(AppStateManager.class).asEagerSingleton(); bind(AppStateServiceClient.class).to(AppStateServiceClientImpl.class); GinMultibinder<StateComponent> stateComponents = GinMultibinder.newSetBinder(binder(), StateComponent.class); stateComponents.addBinding().to(WorkspacePresenter.class); stateComponents.addBinding().to(EditorAgentImpl.class); stateComponents.addBinding().to(ProjectExplorerStateComponent.class); } }
@Override protected void configure() { super.configure(); bind(SmartGwtRootPresenter.class).asEagerSingleton(); bind(ViewUtil.class).to(ViewUtilImpl.class).in(Singleton.class); bindPresenter(SldEditorExpertPresenter.class, SldEditorExpertPresenter.MyView.class, SldEditorView.class, SldEditorExpertPresenter.MyProxy.class); } }
@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(MailController.class).asEagerSingleton(); // Register the mail template module final GinMultibinder<IAppModule> multibinder = GinMultibinder.newSetBinder(binder(), IAppModule.class); multibinder.addBinding().to(MailModule.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); } }
@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(ConsoleOptionsFrontendPersister.class).to(ConsoleOptionsFrontendPersisterImpl.class).in(Singleton.class); bind(ConsoleUtils.class).to(ConsoleUtilsImpl.class).in(Singleton.class); bind(PluginActionButtonHandler.class).asEagerSingleton(); }
@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(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); } }
@Override protected void configure() { install(new CommonGinModule()); bind(RootPresenter.class).asEagerSingleton(); bind(EventBus.class).to(builder.getEventBusClass()).in(Singleton.class); bind(TokenFormatter.class).to(builder.getTokenFormatterClass()).in(Singleton.class); bind(PlaceManager.class).to(builder.getPlaceManagerClass()).in(Singleton.class); maybeBindConstant(DefaultPlace.class, builder.getDefaultPlace()); maybeBindConstant(ErrorPlace.class, builder.getErrorPlace()); maybeBindConstant(UnauthorizedPlace.class, builder.getUnauthorizedPlace()); }