use of org.jnosql.diana.api.key.KeyValueConfiguration in project jnosql-diana-driver by eclipse.
the class KeyValueEntityManagerFactoryUtils method get.
public static BucketManagerFactory get() {
KeyValueConfiguration configuration = new InfinispanKeyValueConfiguration();
BucketManagerFactory managerFactory = configuration.get();
return managerFactory;
}
use of org.jnosql.diana.api.key.KeyValueConfiguration in project jnosql-diana-driver by eclipse.
the class KeyValueEntityManagerFactoryTest method setUp.
@BeforeEach
public void setUp() {
KeyValueConfiguration configuration = new InfinispanKeyValueConfiguration();
managerFactory = configuration.get();
}
use of org.jnosql.diana.api.key.KeyValueConfiguration in project jnosql-diana-driver by eclipse.
the class RedisBucketManagerFactoryTest method setUp.
@BeforeEach
public void setUp() {
KeyValueConfiguration configuration = new RedisConfiguration();
managerFactory = configuration.get();
}
use of org.jnosql.diana.api.key.KeyValueConfiguration in project jnosql-artemis by eclipse.
the class BucketManagerFactoryProducer method getBuckerManagerFactocy.
private <T extends BucketManager> BucketManagerFactory<T> getBuckerManagerFactocy(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, KeyValueConfiguration.class);
Class<KeyValueConfiguration> configurationClass = unit.<KeyValueConfiguration>getProvider().orElseThrow(() -> new IllegalStateException("The ColumnConfiguration provider is required in the configuration"));
KeyValueConfiguration columnConfiguration = reflections.newInstance(configurationClass);
return columnConfiguration.get(unit.getSettings());
}
use of org.jnosql.diana.api.key.KeyValueConfiguration in project jnosql-diana-driver by eclipse.
the class KeyValueEntityManagerFactoryTest method setUp.
@BeforeEach
public void setUp() {
KeyValueConfiguration configuration = new HazelcastKeyValueConfiguration();
managerFactory = configuration.get();
}
Aggregations