Class AbstractJndiBoundCacheProvider

java.lang.Object
org.hibernate.cache.AbstractJndiBoundCacheProvider
All Implemented Interfaces:
CacheProvider

public abstract class AbstractJndiBoundCacheProvider extends Object implements CacheProvider
Support for CacheProvider implementations which are backed by caches bound into JNDI namespace.
  • Constructor Details

    • AbstractJndiBoundCacheProvider

      public AbstractJndiBoundCacheProvider()
  • Method Details

    • prepare

      protected void prepare(Properties properties)
    • release

      protected void release()
    • start

      public final void start(Properties properties) throws CacheException
      Callback to perform any necessary initialization of the underlying cache implementation during SessionFactory construction.
      Specified by:
      start in interface CacheProvider
      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:
      stop in interface CacheProvider
    • getCache

      public Object getCache()