org.jboss.hibernate.jbc.cacheprovider
Class JndiBoundTreeCacheProvider

java.lang.Object
  extended by org.hibernate.cache.AbstractJndiBoundCacheProvider
      extended by org.jboss.hibernate.jbc.cacheprovider.JndiBoundTreeCacheProvider
All Implemented Interfaces:
org.hibernate.cache.CacheProvider
Direct Known Subclasses:
OptimisticJndiBoundTreeCacheProvider

public class JndiBoundTreeCacheProvider
extends org.hibernate.cache.AbstractJndiBoundCacheProvider

Support for JBossCache (TreeCache), where the cache instance is available via JNDI lookup.

Author:
Brian Stansberry

Constructor Summary
JndiBoundTreeCacheProvider()
           
 
Method Summary
 org.hibernate.cache.Cache buildCache(String regionName, Properties properties)
           
 org.jboss.cache.TreeCache getUnderlyingCache()
           
 boolean isMinimalPutsEnabledByDefault()
           
 boolean isOptimistic()
           
 long nextTimestamp()
           
 void prepare(Properties properties)
           
 
Methods inherited from class org.hibernate.cache.AbstractJndiBoundCacheProvider
getCache, release, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JndiBoundTreeCacheProvider

public JndiBoundTreeCacheProvider()
Method Detail

buildCache

public org.hibernate.cache.Cache buildCache(String regionName,
                                            Properties properties)
                                     throws org.hibernate.cache.CacheException
Throws:
org.hibernate.cache.CacheException

prepare

public void prepare(Properties properties)
             throws org.hibernate.cache.CacheException
Overrides:
prepare in class org.hibernate.cache.AbstractJndiBoundCacheProvider
Throws:
org.hibernate.cache.CacheException

isMinimalPutsEnabledByDefault

public boolean isMinimalPutsEnabledByDefault()

nextTimestamp

public long nextTimestamp()

isOptimistic

public boolean isOptimistic()

getUnderlyingCache

public org.jboss.cache.TreeCache getUnderlyingCache()


Copyright © 2008 JBoss, a division of Red Hat, Inc.. All Rights Reserved.