@Override protected void configure() { bind(DatasetDefinitionRegistryFactory.class) .to(DefaultDatasetDefinitionRegistryFactory.class).in(Scopes.SINGLETON); bind(MetadataStore.class).to(DefaultMetadataStore.class); expose(MetadataStore.class); bind(DatasetFramework.class) .annotatedWith(Names.named(BASE_DATASET_FRAMEWORK)) .to(RemoteDatasetFramework.class); bind(LineageStoreReader.class).to(DefaultLineageStoreReader.class); // Need to expose LineageStoreReader as it's being used by the LineageHandler (through LineageAdmin) expose(LineageStoreReader.class); bind(FieldLineageReader.class).to(DefaultFieldLineageReader.class); expose(FieldLineageReader.class); bind(LineageWriter.class).to(BasicLineageWriter.class); expose(LineageWriter.class); bind(FieldLineageWriter.class).to(BasicLineageWriter.class); expose(FieldLineageWriter.class); bind(UsageRegistry.class).to(BasicUsageRegistry.class).in(Scopes.SINGLETON); expose(UsageRegistry.class); bind(UsageWriter.class).to(BasicUsageRegistry.class).in(Scopes.SINGLETON); expose(UsageWriter.class); bind(BasicUsageRegistry.class).in(Scopes.SINGLETON); bind(DatasetFramework.class).to(LineageWriterDatasetFramework.class); expose(DatasetFramework.class); bind(DefaultOwnerStore.class).in(Scopes.SINGLETON); bind(OwnerStore.class).to(DefaultOwnerStore.class); expose(OwnerStore.class); } };
@Override protected void configure() { bind(DatasetDefinitionRegistryFactory.class) .to(DefaultDatasetDefinitionRegistryFactory.class).in(Scopes.SINGLETON); bind(MetadataStore.class).to(DefaultMetadataStore.class); expose(MetadataStore.class); bind(DatasetFramework.class) .annotatedWith(Names.named(BASE_DATASET_FRAMEWORK)) .to(RemoteDatasetFramework.class); bind(LineageStoreReader.class).to(DefaultLineageStoreReader.class); // Need to expose LineageStoreReader as it's being used by the LineageHandler (through LineageAdmin) expose(LineageStoreReader.class); bind(FieldLineageReader.class).to(DefaultFieldLineageReader.class); expose(FieldLineageReader.class); bind(LineageWriter.class).to(BasicLineageWriter.class); expose(LineageWriter.class); bind(FieldLineageWriter.class).to(BasicLineageWriter.class); expose(FieldLineageWriter.class); bind(UsageRegistry.class).to(BasicUsageRegistry.class).in(Scopes.SINGLETON); expose(UsageRegistry.class); bind(UsageWriter.class).to(BasicUsageRegistry.class).in(Scopes.SINGLETON); expose(UsageWriter.class); bind(BasicUsageRegistry.class).in(Scopes.SINGLETON); bind(DatasetFramework.class).to(LineageWriterDatasetFramework.class); expose(DatasetFramework.class); bind(DefaultOwnerStore.class).in(Scopes.SINGLETON); bind(OwnerStore.class).to(DefaultOwnerStore.class); expose(OwnerStore.class); } };