use of org.jnosql.diana.api.column.ColumnConfiguration in project jnosql-artemis by eclipse.
the class ColumnFamilyManagerFactoryProducer method gettColumnFamilyManagerFactory.
private <T extends ColumnFamilyManager> ColumnFamilyManagerFactory<T> gettColumnFamilyManagerFactory(InjectionPoint injectionPoint) {
Annotated annotated = injectionPoint.getAnnotated();
ConfigurationUnit annotation = getConfigurationUnit(injectionPoint, annotated).orElseThrow(() -> new IllegalStateException("The @ConfigurationUnit does not found"));
ConfigurationSettingsUnit unit = configurationReader.get().read(annotation, ColumnConfiguration.class);
Class<ColumnConfiguration> configurationClass = unit.<ColumnConfiguration>getProvider().orElseThrow(() -> new IllegalStateException("The ColumnConfiguration provider is required in the configuration"));
ColumnConfiguration columnConfiguration = reflections.newInstance(configurationClass);
return columnConfiguration.get(unit.getSettings());
}
use of org.jnosql.diana.api.column.ColumnConfiguration in project jnosql-diana-driver by eclipse.
the class HBaseColumnConfigurationTest method shouldCreatesColumnFamilyManagerFactoryFromConfiguration.
@Test
public void shouldCreatesColumnFamilyManagerFactoryFromConfiguration() {
ColumnConfiguration configuration = new HBaseColumnConfiguration();
assertNotNull(configuration.get());
}
use of org.jnosql.diana.api.column.ColumnConfiguration in project jnosql-diana-driver by eclipse.
the class HBaseColumnConfigurationTest method shouldCreatesColumnFamilyManagerFactory.
@Test
public void shouldCreatesColumnFamilyManagerFactory() {
ColumnConfiguration configuration = new HBaseColumnConfiguration();
assertNotNull(configuration.get());
}
Aggregations