use of jakarta.nosql.column.ColumnConfiguration in project jnosql-communication-driver by eclipse.
the class HBaseColumnConfigurationTest method shouldCreatesColumnFamilyManagerFactoryFromConfiguration.
@Test
public void shouldCreatesColumnFamilyManagerFactoryFromConfiguration() {
ColumnConfiguration configuration = new HBaseColumnConfiguration();
assertNotNull(configuration.get());
}
use of jakarta.nosql.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 jakarta.nosql.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());
}
use of jakarta.nosql.column.ColumnConfiguration in project jnosql-diana-driver by eclipse.
the class CassandraConfigurationTest method shouldCreateConfiguration.
@Test
public void shouldCreateConfiguration() {
ColumnConfiguration configuration = ColumnConfiguration.getConfiguration();
Assertions.assertNotNull(configuration);
Assertions.assertTrue(configuration instanceof CassandraConfiguration);
}
use of jakarta.nosql.column.ColumnConfiguration in project jnosql-diana by eclipse.
the class ColumnFamilyManagerFactoryConverter method success.
@Override
public ColumnFamilyManagerFactory success(String value) {
final SettingsConverter settingsConverter = BeanManagers.getInstance(SettingsConverter.class);
Config config = BeanManagers.getInstance(Config.class);
final Settings settings = settingsConverter.convert(value);
String provider = value + ".provider";
final Class<?> configurationClass = config.getValue(provider, Class.class);
if (ColumnConfiguration.class.isAssignableFrom(configurationClass)) {
final Reflections reflections = BeanManagers.getInstance(Reflections.class);
final ColumnConfiguration configuration = (ColumnConfiguration) reflections.newInstance(configurationClass);
return configuration.get(settings);
}
throw new ConfigurationException("The class " + configurationClass + " is not valid to " + ColumnConfiguration.class);
}
Aggregations