org.hibernate.cache.jbc2.builder
Class JndiMultiplexingCacheInstanceManager

java.lang.Object
  extended by org.hibernate.cache.jbc2.builder.MultiplexingCacheInstanceManager
      extended by 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

Field Summary
static String CACHE_FACTORY_RESOURCE_PROP
          Specifies the JNDI name under which the CacheManager to use is bound.
 
Fields inherited from class org.hibernate.cache.jbc2.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, QUERY_CACHE_RESOURCE_PROP, TIMESTAMP_CACHE_RESOURCE_PROP
 
Constructor Summary
JndiMultiplexingCacheInstanceManager()
          Create a new JndiMultiplexingCacheInstanceManager.
 
Method Summary
 void start(Settings settings, Properties properties)
          Lifecycle callback to perform any necessary initialization of the CacheInstanceManager.
 
Methods inherited from class org.hibernate.cache.jbc2.builder.MultiplexingCacheInstanceManager
getCacheFactory, getChannelFactory, getCollectionCacheInstance, getEntityCacheInstance, getQueryCacheInstance, getTimestampsCacheInstance, setCacheFactory, setChannelFactory, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

JndiMultiplexingCacheInstanceManager

public JndiMultiplexingCacheInstanceManager()
Create a new JndiMultiplexingCacheInstanceManager.

Method Detail

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 © 2009 Hibernate.org. All Rights Reserved.