@Override protected void configure() { bind(RunRecordCorrectorService.class).to(LocalRunRecordCorrectorService.class) .in(Scopes.SINGLETON); bind(TimeSchedulerService.class).to(LocalTimeSchedulerService.class) .in(Scopes.SINGLETON); bind(MRJobInfoFetcher.class).to(LocalMRJobInfoFetcher.class); bind(StorageProviderNamespaceAdmin.class).to(LocalStorageProviderNamespaceAdmin.class); bind(UGIProvider.class).to(UnsupportedUGIProvider.class); bind(RouteStore.class).to(LocalRouteStore.class).in(Scopes.SINGLETON); addInMemoryBindings(binder()); Multibinder.newSetBinder(binder(), String.class, Names.named("appfabric.services.names")); servicesNamesBinder.addBinding().toInstance(Constants.Service.APP_FABRIC_HTTP); Multibinder.newSetBinder(binder(), String.class, Names.named("appfabric.handler.hooks")); handlerHookNamesBinder.addBinding().toInstance(Constants.Service.APP_FABRIC_HTTP);
@Override protected void configure() { bind(AppFabricServer.class).to(StandaloneAppFabricServer.class).in(Scopes.SINGLETON); bind(RunRecordCorrectorService.class).to(LocalRunRecordCorrectorService.class) .in(Scopes.SINGLETON); bind(TimeSchedulerService.class).to(LocalTimeSchedulerService.class) .in(Scopes.SINGLETON); bind(MRJobInfoFetcher.class).to(LocalMRJobInfoFetcher.class); bind(StorageProviderNamespaceAdmin.class).to(LocalStorageProviderNamespaceAdmin.class); bind(UGIProvider.class).to(UnsupportedUGIProvider.class); bind(RouteStore.class).to(LocalRouteStore.class).in(Scopes.SINGLETON); addInMemoryBindings(binder()); Multibinder.newSetBinder(binder(), String.class, Names.named("appfabric.services.names")); servicesNamesBinder.addBinding().toInstance(Constants.Service.APP_FABRIC_HTTP); Multibinder.newSetBinder(binder(), String.class, Names.named("appfabric.handler.hooks")); handlerHookNamesBinder.addBinding().toInstance(Constants.Service.APP_FABRIC_HTTP);