@Override protected void configure() { bind(PipelineFactory.class).to(SynchronousPipelineFactory.class); install( new FactoryModuleBuilder() .implement(new TypeLiteral<Manager<AppDeploymentInfo, ApplicationWithPrograms>>() { binder(), String.class, DatasetModule.class, Constants.Dataset.Manager.DefaultDatasetModules.class); datasetModuleBinder.addBinding("app-fabric").toInstance(new AppFabricDatasetModule()); bind(Store.class).to(DefaultStore.class); bind(WorkflowStateWriter.class).to(BasicWorkflowStateWriter.class); bind(ArtifactStore.class).in(Scopes.SINGLETON); bind(ProfileService.class).in(Scopes.SINGLETON); bind(ProgramLifecycleService.class).in(Scopes.SINGLETON); bind(OwnerAdmin.class).to(DefaultOwnerAdmin.class); bind(CoreSchedulerService.class).in(Scopes.SINGLETON); bind(Scheduler.class).to(CoreSchedulerService.class); bind(ArtifactRepository.class) .annotatedWith(Names.named(NOAUTH_ARTIFACT_REPO)) .to(DefaultArtifactRepository.class) .in(Scopes.SINGLETON); bind(ArtifactRepository.class).to(AuthorizationArtifactRepository.class).in(Scopes.SINGLETON); bind(ProfileService.class).in(Scopes.SINGLETON); binder(), HttpHandler.class, Names.named(Constants.AppFabric.HANDLERS_BINDING));
@Override public Module getDistributedModules() { return Modules.combine(new AppFabricServiceModule(ImpersonationHandler.class, PreviewHttpHandler.class), new PreviewHttpModule().getDistributedModules(), new NamespaceAdminModule().getDistributedModules(),
@Override public Module getDistributedModules() { return Modules.combine(new AppFabricServiceModule(ImpersonationHandler.class), new NamespaceAdminModule().getDistributedModules(), new ConfigStoreModule().getDistributedModule(),
@Override public Module getStandaloneModules() { return Modules.combine(new AppFabricServiceModule( StreamHandler.class, StreamFetchHandler.class, StreamViewHttpHandler.class, PreviewHttpHandler.class),
@Override protected void configure() { bind(PipelineFactory.class).to(SynchronousPipelineFactory.class); install( new FactoryModuleBuilder() .implement(new TypeLiteral<Manager<AppDeploymentInfo, ApplicationWithPrograms>>() { binder(), String.class, DatasetModule.class, Constants.Dataset.Manager.DefaultDatasetModules.class); datasetModuleBinder.addBinding("app-fabric").toInstance(new AppFabricDatasetModule()); bind(Store.class).to(DefaultStore.class); bind(WorkflowStateWriter.class).to(BasicWorkflowStateWriter.class); bind(ArtifactStore.class).in(Scopes.SINGLETON); bind(ProfileService.class).in(Scopes.SINGLETON); bind(ProgramLifecycleService.class).in(Scopes.SINGLETON); bind(OwnerAdmin.class).to(DefaultOwnerAdmin.class); bind(CoreSchedulerService.class).in(Scopes.SINGLETON); bind(Scheduler.class).to(CoreSchedulerService.class); bind(ArtifactRepository.class) .annotatedWith(Names.named(NOAUTH_ARTIFACT_REPO)) .to(DefaultArtifactRepository.class) .in(Scopes.SINGLETON); bind(ArtifactRepository.class).to(AuthorizationArtifactRepository.class).in(Scopes.SINGLETON); bind(ProfileService.class).in(Scopes.SINGLETON); binder(), HttpHandler.class, Names.named(Constants.AppFabric.HANDLERS_BINDING));
@Override public Module getStandaloneModules() { return Modules.combine(new AppFabricServiceModule(PreviewHttpHandler.class), new NamespaceAdminModule().getStandaloneModules(), new ConfigStoreModule().getStandaloneModule(),
@Override public Module getInMemoryModules() { return Modules.combine(new AppFabricServiceModule( StreamHandler.class, StreamFetchHandler.class, StreamViewHttpHandler.class),
@Override public Module getInMemoryModules() { return Modules.combine(new AppFabricServiceModule(), new NamespaceAdminModule().getInMemoryModules(), new ConfigStoreModule().getInMemoryModule(),