@Override protected void configure() { bind(PipelineFactory.class).to(SynchronousPipelineFactory.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);
@Override protected void configure() { bind(PipelineFactory.class).to(SynchronousPipelineFactory.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);