Top Description Fields Constructors Methods
net.sf.ehcache.hibernate

public Class EhCacheRegionFactory

extends AbstractEhcacheRegionFactory
Class Inheritance
Imports
java.net.MalformedURLException, .URL, java.util.Properties, net.sf.ehcache.CacheManager, net.sf.ehcache.config.Configuration, .ConfigurationFactory, org.hibernate.cache.CacheException, org.hibernate.cfg.Settings, org.slf4j.Logger, .LoggerFactory

A non-singleton EhCacheRegionFactory implementation.
Authors
Chris Dennis, Greg Luck, Emmanuel Bernard, Abhishek Sanoujam

Field Summary

Modifier and TypeField and Description
private static final Logger
Inherited from net.sf.ehcache.hibernate.AbstractEhcacheRegionFactory:
accessStrategyFactorymanagermbeanRegistrationHelperNET_SF_EHCACHE_CACHE_MANAGER_NAMENET_SF_EHCACHE_CONFIGURATION_RESOURCE_NAMEsettings

Constructor Summary

AccessConstructor and Description
public
EhCacheRegionFactory(Properties prop)

Creates a non-singleton EhCacheRegionFactory

Method Summary

Modifier and TypeMethod and Description
public void
start(Settings
The settings in effect.
settings
,
Properties
The defined cfg properties
properties
)

Implements org.hibernate.cache.RegionFactory.start.

Lifecycle callback to perform any necessary initialization of the underlying cache implementation(s).
public void
stop()

Implements org.hibernate.cache.RegionFactory.stop.

Lifecycle callback to perform any necessary cleanup of the underlying cache implementation(s).
Inherited from net.sf.ehcache.hibernate.AbstractEhcacheRegionFactory:
buildCollectionRegionbuildEntityRegionbuildQueryResultsRegionbuildTimestampsRegiongetDefaultAccessTypeisMinimalPutsEnabledByDefaultloadResourcenextTimestamp

Field Detail

LOGback to summary
private static final Logger LOG

Hides net.sf.ehcache.hibernate.AbstractEhcacheRegionFactory.LOG.

Constructor Detail

EhCacheRegionFactoryback to summary
public EhCacheRegionFactory(Properties prop)

Creates a non-singleton EhCacheRegionFactory

Method Detail

startback to summary
public void start(Settings settings, Properties properties) throws CacheException

Implements org.hibernate.cache.RegionFactory.start.

Doc from org.hibernate.cache.RegionFactory.start.

Lifecycle callback to perform any necessary initialization of the underlying cache implementation(s). Called exactly once during the construction of a org.hibernate.impl.SessionFactoryImpl.

Parameters
settings:Settings

The settings in effect.

properties:Properties

The defined cfg properties

Exceptions
CacheException:
Indicates problems starting the L2 cache impl; considered as a sign to stop org.hibernate.SessionFactory building.
stopback to summary
public void stop()

Implements org.hibernate.cache.RegionFactory.stop.

Doc from org.hibernate.cache.RegionFactory.stop.

Lifecycle callback to perform any necessary cleanup of the underlying cache implementation(s). Called exactly once during org.hibernate.SessionFactory#close.