@Override protected void configure() { bind(RunRecordCorrectorService.class).to(NoopRunRecordCorrectorService.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<String> servicesNamesBinder = Multibinder.newSetBinder(binder(), String.class, Names.named("appfabric.services.names")); servicesNamesBinder.addBinding().toInstance(Constants.Service.APP_FABRIC_HTTP); servicesNamesBinder.addBinding().toInstance(Constants.Service.STREAMS); // TODO: Uncomment after CDAP-7688 is resolved // servicesNamesBinder.addBinding().toInstance(Constants.Service.MESSAGING_SERVICE); Multibinder<String> handlerHookNamesBinder = Multibinder.newSetBinder(binder(), String.class, Names.named("appfabric.handler.hooks")); handlerHookNamesBinder.addBinding().toInstance(Constants.Service.APP_FABRIC_HTTP); handlerHookNamesBinder.addBinding().toInstance(Constants.Stream.STREAM_HANDLER); // TODO: Uncomment after CDAP-7688 is resolved // handlerHookNamesBinder.addBinding().toInstance(Constants.Service.MESSAGING_SERVICE); } });
@Override protected void configure() { bind(RunRecordCorrectorService.class).to(NoopRunRecordCorrectorService.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<String> servicesNamesBinder = Multibinder.newSetBinder(binder(), String.class, Names.named("appfabric.services.names")); servicesNamesBinder.addBinding().toInstance(Constants.Service.APP_FABRIC_HTTP); // TODO: Uncomment after CDAP-7688 is resolved // servicesNamesBinder.addBinding().toInstance(Constants.Service.MESSAGING_SERVICE); Multibinder<String> handlerHookNamesBinder = Multibinder.newSetBinder(binder(), String.class, Names.named("appfabric.handler.hooks")); handlerHookNamesBinder.addBinding().toInstance(Constants.Service.APP_FABRIC_HTTP); // TODO: Uncomment after CDAP-7688 is resolved // handlerHookNamesBinder.addBinding().toInstance(Constants.Service.MESSAGING_SERVICE); } });