@Override protected void configure() { bind(DynamicDatasetCache.class).toProvider(DynamicDatasetCacheProvider.class).in(Scopes.SINGLETON); bind(DatasetContext.class).to(DynamicDatasetCache.class).in(Scopes.SINGLETON); bind(Admin.class).toProvider(AdminProvider.class); bind(Transactional.class).toProvider(TransactionalProvider.class); install( new FactoryModuleBuilder() .implement(AuthorizationContext.class, DefaultAuthorizationContext.class) .build(AuthorizationContextFactory.class) ); bind(AuthorizerInstantiator.class).in(Scopes.SINGLETON); expose(AuthorizerInstantiator.class); bind(PrivilegesManager.class).to(DelegatingPrivilegeManager.class); expose(PrivilegesManager.class); }
new ExploreClientModule(), new NamespaceStoreModule().getStandaloneModules(), new AuthorizationModule(), new AuthorizationEnforcementModule().getInMemoryModules(), new MessagingServerRuntimeModule().getInMemoryModules(),
new NotificationServiceRuntimeModule().getInMemoryModules(), new NamespaceStoreModule().getStandaloneModules(), new AuthorizationModule(), new AuthorizationEnforcementModule().getInMemoryModules(), new MessagingServerRuntimeModule().getInMemoryModules(),
@VisibleForTesting public static Injector createInjector(CConfiguration cConf, Configuration hConf) { return Guice.createInjector( new ConfigModule(cConf, hConf), new IOModule(), new ZKClientModule(), new ZKDiscoveryModule(), new KafkaClientModule(), new DFSLocationModule(), new DataFabricModules(HBaseTableExporter.class.getName()).getDistributedModules(), new DataSetsModules().getDistributedModules(), new MessagingClientModule(), new MetricsClientRuntimeModule().getDistributedModules(), new KafkaLogAppenderModule(), new ExploreClientModule(), new AuthorizationModule(), new AuthorizationEnforcementModule().getMasterModule(), new AuthenticationContextModules().getMasterModule(), new NamespaceQueryAdminModule(), new SecureStoreServerModule(), new AbstractModule() { @Override protected void configure() { bind(UGIProvider.class).to(RemoteUGIProvider.class); bind(OwnerAdmin.class).to(DefaultOwnerAdmin.class); } } ); }
@Override protected void configure() { bind(DynamicDatasetCache.class).toProvider(DynamicDatasetCacheProvider.class).in(Scopes.SINGLETON); bind(DatasetContext.class).to(DynamicDatasetCache.class).in(Scopes.SINGLETON); bind(Admin.class).toProvider(AdminProvider.class); bind(Transactional.class).toProvider(TransactionalProvider.class); install( new FactoryModuleBuilder() .implement(AuthorizationContext.class, DefaultAuthorizationContext.class) .build(AuthorizationContextFactory.class) ); bind(AuthorizerInstantiator.class).in(Scopes.SINGLETON); expose(AuthorizerInstantiator.class); bind(PrivilegesManager.class).to(DelegatingPrivilegeManager.class); expose(PrivilegesManager.class); }
new KafkaClientModule(), new NamespaceStoreModule().getDistributedModules(), new AuthorizationModule(), new AuthorizationEnforcementModule().getMasterModule(), new SecureStoreServerModule(),
new NamespaceStoreModule().getDistributedModules(), new AuthenticationContextModules().getMasterModule(), new AuthorizationModule(), new AuthorizationEnforcementModule().getMasterModule(), new SecureStoreServerModule(),
new NamespaceStoreModule().getDistributedModules(), new AuditModule().getDistributedModules(), new AuthorizationModule(), new AuthorizationEnforcementModule().getMasterModule(), new TwillModule(),
new MetadataReaderWriterModules().getStandaloneModules(), new AuditModule().getStandaloneModules(), new AuthorizationModule(), new AuthorizationEnforcementModule().getStandaloneModules(), new PreviewHttpModule().getStandaloneModules(),
new MetadataReaderWriterModules().getStandaloneModules(), new AuditModule().getStandaloneModules(), new AuthorizationModule(), new AuthorizationEnforcementModule().getStandaloneModules(), new PreviewHttpModule(),
new MetadataServiceModule(), new MetadataReaderWriterModules().getInMemoryModules(), new AuthorizationModule(), new AuthorizationEnforcementModule().getStandaloneModules(), new SecureStoreServerModule(),
@Override protected void configure() { install(new DataFabricModules().getInMemoryModules()); install(new DataSetsModules().getStandaloneModules()); install(new TransactionExecutorModule()); install(new DataSetServiceModules().getInMemoryModules()); install(new ConfigModule(cConf, hConf, sConf)); install(new IOModule()); install(new InMemoryDiscoveryModule()); install(new AppFabricServiceRuntimeModule().getInMemoryModules()); install(new ServiceStoreModules().getInMemoryModules()); install(new ProgramRunnerRuntimeModule().getInMemoryModules()); install(new NonCustomLocationUnitTestModule()); install(new LocalLogAppenderModule()); install(new LogReaderRuntimeModules().getInMemoryModules()); install(new LogQueryServerModule()); install(new MetricsHandlerModule()); install(new MetricsClientRuntimeModule().getInMemoryModules()); install(new ExploreClientModule()); install(new ConfigStoreModule().getInMemoryModule()); install(new NamespaceStoreModule().getStandaloneModules()); install(new MetadataServiceModule()); install(new AuthorizationModule()); install(new AuthorizationEnforcementModule().getStandaloneModules()); install(new SecureStoreServerModule()); install(new MetadataReaderWriterModules().getInMemoryModules()); install(new MessagingServerRuntimeModule().getInMemoryModules()); install(new MockProvisionerModule()); } }