Package org.hibernate.cache
Class AbstractJndiBoundCacheProvider
java.lang.Object
org.hibernate.cache.AbstractJndiBoundCacheProvider
- All Implemented Interfaces:
CacheProvider
Support for CacheProvider implementations which are backed by caches bound
into JNDI namespace.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCache()protected voidprepare(Properties properties) protected voidrelease()final voidstart(Properties properties) Callback to perform any necessary initialization of the underlying cache implementation during SessionFactory construction.final voidstop()Callback to perform any necessary cleanup of the underlying cache implementation during SessionFactory.close().Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.cache.CacheProvider
buildCache, isMinimalPutsEnabledByDefault, nextTimestamp
-
Constructor Details
-
AbstractJndiBoundCacheProvider
public AbstractJndiBoundCacheProvider()
-
-
Method Details
-
prepare
-
release
protected void release() -
start
Callback to perform any necessary initialization of the underlying cache implementation during SessionFactory construction.- Specified by:
startin interfaceCacheProvider- Parameters:
properties- current configuration settings.- Throws:
CacheException
-
stop
public final void stop()Callback to perform any necessary cleanup of the underlying cache implementation during SessionFactory.close().- Specified by:
stopin interfaceCacheProvider
-
getCache
-