org.hibernate.ogm.datastore.infinispan.Infinispan Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-ogm-infinispan-embedded Show documentation
Show all versions of hibernate-ogm-infinispan-embedded Show documentation
Persist objects in Infinispan Embedded
The newest version!
/*
* Hibernate OGM, Domain model persistence for NoSQL datastores
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.ogm.datastore.infinispan;
import org.hibernate.ogm.cfg.OgmProperties;
import org.hibernate.ogm.datastore.infinispan.options.navigation.InfinispanGlobalContext;
import org.hibernate.ogm.datastore.infinispan.options.navigation.impl.InfinispanEntityContextImpl;
import org.hibernate.ogm.datastore.infinispan.options.navigation.impl.InfinispanGlobalContextImpl;
import org.hibernate.ogm.datastore.infinispan.options.navigation.impl.InfinispanPropertyContextImpl;
import org.hibernate.ogm.datastore.spi.DatastoreConfiguration;
import org.hibernate.ogm.options.navigation.spi.ConfigurationContext;
/**
* Allows to configure options specific to the Infinispan data store.
*
* @deprecated Use {@link InfinispanEmbedded}
*
* @author Gunnar Morling
*/
@Deprecated
public class Infinispan implements DatastoreConfiguration {
/**
* Short name of this data store provider.
*
* @see OgmProperties#DATASTORE_PROVIDER
*/
public static final String DATASTORE_PROVIDER_NAME = "INFINISPAN_EMBEDDED";
@Override
public InfinispanGlobalContext getConfigurationBuilder(ConfigurationContext context) {
return context.createGlobalContext( InfinispanGlobalContextImpl.class, InfinispanEntityContextImpl.class, InfinispanPropertyContextImpl.class );
}
}