org.hibernate.cache.infinispan
Class JndiInfinispanRegionFactory
java.lang.Object
org.hibernate.cache.infinispan.InfinispanRegionFactory
org.hibernate.cache.infinispan.JndiInfinispanRegionFactory
- All Implemented Interfaces:
- RegionFactory
public class JndiInfinispanRegionFactory
- extends InfinispanRegionFactory
A RegionFactory
for Infinispan-backed cache
regions that finds its cache manager in JNDI rather than creating one itself.
- Since:
- 3.5
- Author:
- Galder ZamarreƱo
Method Summary |
protected org.infinispan.manager.EmbeddedCacheManager |
createCacheManager(Properties properties)
|
void |
stop()
Lifecycle callback to perform any necessary cleanup of the underlying
cache implementation(s). |
Methods inherited from class org.hibernate.cache.infinispan.InfinispanRegionFactory |
buildCollectionRegion, buildEntityRegion, buildQueryResultsRegion, buildTimestampsRegion, getCacheManager, getDefaultAccessType, getDefinedConfigurations, getTypeOverrides, isMinimalPutsEnabledByDefault, nextTimestamp, setCacheManager, start |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CACHE_MANAGER_RESOURCE_PROP
public static final String CACHE_MANAGER_RESOURCE_PROP
- Specifies the JNDI name under which the
EmbeddedCacheManager
to use is bound.
There is no default value -- the user must specify the property.
- See Also:
- Constant Field Values
JndiInfinispanRegionFactory
public JndiInfinispanRegionFactory()
JndiInfinispanRegionFactory
public JndiInfinispanRegionFactory(Properties props)
createCacheManager
protected org.infinispan.manager.EmbeddedCacheManager createCacheManager(Properties properties)
throws CacheException
- Overrides:
createCacheManager
in class InfinispanRegionFactory
- Throws:
CacheException
stop
public void stop()
- Description copied from class:
InfinispanRegionFactory
- Lifecycle callback to perform any necessary cleanup of the underlying
cache implementation(s). Called exactly once during
SessionFactory.close()
.
- Specified by:
stop
in interface RegionFactory
- Overrides:
stop
in class InfinispanRegionFactory
Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.