Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » cache » jbc2 » [javadoc | source]
org.hibernate.cache.jbc2
public class: JBossCacheRegionFactory [javadoc | source]
java.lang.Object
   org.hibernate.cache.jbc2.JBossCacheRegionFactory

All Implemented Interfaces:
    RegionFactory

Direct Known Subclasses:
    JndiSharedJBossCacheRegionFactory, MultiplexedJBossCacheRegionFactory, JndiMultiplexedJBossCacheRegionFactory, SharedJBossCacheRegionFactory

RegionFactory that uses one or more JBoss Cache instances for caching entities, collections, queries and timestamps. How the factory obtains a reference to the needed JBoss Cache instance(s) is determined by the injected CacheInstanceManager .

By default uses SharedCacheInstanceManager as its CacheInstanceManager . Basically, this uses a single shared JBoss Cache for entities, collections, queries and timestamps. The JBoss Cache instance is created by the JBC DefaultCacheFactory using the resource identified by the JndiSharedCacheInstanceManager#CACHE_RESOURCE_PROP configuration property.

Also exposes an overloaded constructor that allows injection of different CacheInstanceManager implementations.

Constructor:
 public JBossCacheRegionFactory() 
 public JBossCacheRegionFactory(Properties props) 
    FIXME Per the RegionFactory class Javadoc, this constructor version should not be necessary.
    Parameters:
    props - The configuration properties
 public JBossCacheRegionFactory(CacheInstanceManager cacheInstanceManager) 
    Parameters:
    cacheInstanceManager - The contract for how we get JBC cache instances.
Method from org.hibernate.cache.jbc2.JBossCacheRegionFactory Summary:
buildCollectionRegion,   buildEntityRegion,   buildQueryResultsRegion,   buildTimestampsRegion,   getCacheInstanceManager,   getRegionPrefix,   isMinimalPutsEnabledByDefault,   nextTimestamp,   start,   stop
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.cache.jbc2.JBossCacheRegionFactory Detail:
 public CollectionRegion buildCollectionRegion(String regionName,
    Properties properties,
    CacheDataDescription metadata) throws CacheException 
 public EntityRegion buildEntityRegion(String regionName,
    Properties properties,
    CacheDataDescription metadata) throws CacheException 
 public QueryResultsRegion buildQueryResultsRegion(String regionName,
    Properties properties) throws CacheException 
 public TimestampsRegion buildTimestampsRegion(String regionName,
    Properties properties) throws CacheException 
 public CacheInstanceManager getCacheInstanceManager() 
 public static String getRegionPrefix(Properties properties) 
 public boolean isMinimalPutsEnabledByDefault() 
 public long nextTimestamp() 
 public  void start(Settings settings,
    Properties properties) throws CacheException 
 public  void stop()