Top Description Fields Constructors Methods
org.hibernate.cache

public abstract Class AbstractJndiBoundCacheProvider

extends Object
implements CacheProvider
Class Inheritance
All Implemented Interfaces
org.hibernate.cache.CacheProvider
Imports
java.util.Properties, javax.naming.Context, .InitialContext, .NamingException, org.slf4j.Logger, .LoggerFactory, org.hibernate.cfg.Environment, org.hibernate.util.NamingHelper, .StringHelper

Deprecated

as a consequence of CacheProvider being deprecated. See corresponding docs for further information.

Support for CacheProvider implementations which are backed by caches bound into JNDI namespace.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private Object
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
private Object
locateCache(String jndiNamespace, Properties jndiProperties)

protected void
prepare(Properties properties)

protected void
public final void
start(Properties
current configuration settings.
properties
)

Implements org.hibernate.cache.CacheProvider.start.

Callback to perform any necessary initialization of the underlying cache implementation during SessionFactory construction.
public final void
stop()

Implements org.hibernate.cache.CacheProvider.stop.

Callback to perform any necessary cleanup of the underlying cache implementation during SessionFactory.close().
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cacheback to summary
private Object cache
logback to summary
private static final Logger log

Constructor Detail

AbstractJndiBoundCacheProviderback to summary
public AbstractJndiBoundCacheProvider()

Method Detail

getCacheback to summary
public Object getCache()
locateCacheback to summary
private Object locateCache(String jndiNamespace, Properties jndiProperties)
prepareback to summary
protected void prepare(Properties properties)
releaseback to summary
protected void release()
startback to summary
public final void start(Properties properties) throws CacheException

Implements org.hibernate.cache.CacheProvider.start.

Callback to perform any necessary initialization of the underlying cache implementation during SessionFactory construction.

Parameters
properties:Properties

current configuration settings.

stopback to summary
public final void stop()

Implements org.hibernate.cache.CacheProvider.stop.

Callback to perform any necessary cleanup of the underlying cache implementation during SessionFactory.close().