@Deprecated public final class SingletonEhCacheProvider extends AbstractEhcacheProvider
hibernate.cache.provider_class=net.sf.ehcache.hibernate.SingletonEhCacheProvider
in the Hibernate configuration
to enable this provider for Hibernate's second level cache.
Updated for ehcache-1.2. Note this provider requires ehcache-1.2.jar. Make sure ehcache-1.1.jar or earlier
is not in the classpath or it will not work.
See http://ehcache.org for documentation on ehcache
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG
Deprecated.
|
private ProviderMBeanRegistrationHelper |
mbeanRegistrationHelper
Deprecated.
|
static java.lang.String |
NET_SF_EHCACHE_CONFIGURATION_RESOURCE_NAME
Deprecated.
The Hibernate system property specifying the location of the ehcache configuration file name.
|
private static int |
referenceCount
Deprecated.
To be backwardly compatible with a lot of Hibernate code out there, allow multiple starts and stops on the
one singleton CacheManager.
|
manager
Constructor and Description |
---|
SingletonEhCacheProvider()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
start(java.util.Properties properties)
Deprecated.
Callback to perform any necessary initialization of the underlying cache implementation
during SessionFactory construction.
|
void |
stop()
Deprecated.
Callback to perform any necessary cleanup of the underlying cache implementation
during SessionFactory.close().
|
buildCache, isMinimalPutsEnabledByDefault, loadResource, nextTimestamp
public static final java.lang.String NET_SF_EHCACHE_CONFIGURATION_RESOURCE_NAME
private static final org.slf4j.Logger LOG
private static int referenceCount
private final ProviderMBeanRegistrationHelper mbeanRegistrationHelper
public final void start(java.util.Properties properties) throws org.hibernate.cache.CacheException
properties
- current configuration settings.org.hibernate.cache.CacheException
public void stop()