org.hibernate.cache.jbc2.builder
Class JndiMultiplexingCacheInstanceManager
java.lang.Object
org.hibernate.cache.jbc2.builder.MultiplexingCacheInstanceManager
org.hibernate.cache.jbc2.builder.JndiMultiplexingCacheInstanceManager
- All Implemented Interfaces:
- CacheInstanceManager
public class JndiMultiplexingCacheInstanceManager
- extends MultiplexingCacheInstanceManager
A MultiplexingCacheInstanceManager
that finds its cache factory
in JNDI rather than creating one itself.
- Version:
- $Revision: 1 $
- Author:
- Brian Stansberry
Method Summary |
void |
start(Settings settings,
Properties properties)
Lifecycle callback to perform any necessary initialization of the
CacheInstanceManager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CACHE_FACTORY_RESOURCE_PROP
public static final String CACHE_FACTORY_RESOURCE_PROP
- Specifies the JNDI name under which the
CacheManager
to use is bound.
There is no default value -- the user must specify the property.
- See Also:
- Constant Field Values
JndiMultiplexingCacheInstanceManager
public JndiMultiplexingCacheInstanceManager()
- Create a new JndiMultiplexingCacheInstanceManager.
start
public void start(Settings settings,
Properties properties)
throws CacheException
- Description copied from class:
MultiplexingCacheInstanceManager
- Lifecycle callback to perform any necessary initialization of the
CacheInstanceManager. Called exactly once during the construction of a
SessionFactoryImpl
.
- Specified by:
start
in interface CacheInstanceManager
- Overrides:
start
in class MultiplexingCacheInstanceManager
- Parameters:
settings
- The settings in effect.properties
- The defined cfg properties
- Throws:
CacheException
- Indicates problems starting the L2 cache impl; considered as
a sign to stop SessionFactory
building.
Copyright © null-null Red Hat Middleware, LLC. All Rights Reserved