org.hibernate.cache.jbc.builder
Class JndiMultiplexingCacheInstanceManager
java.lang.Object
org.hibernate.cache.jbc.builder.MultiplexingCacheInstanceManager
org.hibernate.cache.jbc.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
Fields inherited from class org.hibernate.cache.jbc.builder.MultiplexingCacheInstanceManager |
CHANNEL_FACTORY_RESOURCE_PROP, COLLECTION_CACHE_RESOURCE_PROP, DEF_CACHE_FACTORY_RESOURCE, DEF_ENTITY_RESOURCE, DEF_JGROUPS_RESOURCE, DEF_QUERY_RESOURCE, DEF_TS_RESOURCE, ENTITY_CACHE_RESOURCE_PROP, LEGACY_CACHE_FACTORY_RESOURCE_PROP, LEGACY_CHANNEL_FACTORY_RESOURCE_PROP, LEGACY_COLLECTION_CACHE_RESOURCE_PROP, LEGACY_ENTITY_CACHE_RESOURCE_PROP, LEGACY_QUERY_CACHE_RESOURCE_PROP, LEGACY_TIMESTAMP_CACHE_RESOURCE_PROP, QUERY_CACHE_RESOURCE_PROP, TIMESTAMP_CACHE_RESOURCE_PROP |
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 © 2001-2010 Red Hat, Inc. All Rights Reserved.