Search in sources :

Example 1 with KeyValueConfiguration

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;
}
Also used : InfinispanKeyValueConfiguration(org.jnosql.diana.infinispan.key.InfinispanKeyValueConfiguration) KeyValueConfiguration(org.jnosql.diana.api.key.KeyValueConfiguration) InfinispanKeyValueConfiguration(org.jnosql.diana.infinispan.key.InfinispanKeyValueConfiguration) BucketManagerFactory(org.jnosql.diana.api.key.BucketManagerFactory)

Example 2 with KeyValueConfiguration

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();
}
Also used : KeyValueConfiguration(org.jnosql.diana.api.key.KeyValueConfiguration) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 3 with KeyValueConfiguration

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();
}
Also used : KeyValueConfiguration(org.jnosql.diana.api.key.KeyValueConfiguration) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 4 with KeyValueConfiguration

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());
}
Also used : Annotated(javax.enterprise.inject.spi.Annotated) KeyValueConfiguration(org.jnosql.diana.api.key.KeyValueConfiguration) ConfigurationSettingsUnit(org.jnosql.artemis.ConfigurationSettingsUnit) ConfigurationUnit(org.jnosql.artemis.ConfigurationUnit)

Example 5 with KeyValueConfiguration

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();
}
Also used : KeyValueConfiguration(org.jnosql.diana.api.key.KeyValueConfiguration) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

KeyValueConfiguration (org.jnosql.diana.api.key.KeyValueConfiguration)6 BeforeEach (org.junit.jupiter.api.BeforeEach)3 BucketManagerFactory (org.jnosql.diana.api.key.BucketManagerFactory)2 Annotated (javax.enterprise.inject.spi.Annotated)1 ConfigurationSettingsUnit (org.jnosql.artemis.ConfigurationSettingsUnit)1 ConfigurationUnit (org.jnosql.artemis.ConfigurationUnit)1 HazelcastKeyValueConfiguration (org.jnosql.diana.hazelcast.key.HazelcastKeyValueConfiguration)1 InfinispanKeyValueConfiguration (org.jnosql.diana.infinispan.key.InfinispanKeyValueConfiguration)1