Class ReadThroughCacheFactory
- java.lang.Object
-
- net.sf.ehcache.constructs.CacheDecoratorFactory
-
- net.sf.ehcache.constructs.readthrough.ReadThroughCacheFactory
-
public class ReadThroughCacheFactory extends CacheDecoratorFactory
CacheDecoratorFactoryimplementation for theReadThroughCachecache decorator. the Properties arguments are used to configureReadThroughCacheConfigurationinstances, which are in turn used to create the cache decorator instances.- Author:
- cschanck
-
-
Field Summary
-
Fields inherited from class net.sf.ehcache.constructs.CacheDecoratorFactory
DASH
-
-
Constructor Summary
Constructors Constructor Description ReadThroughCacheFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EhcachecreateDecoratedEhcache(Ehcache cache, java.util.Properties properties)Creates a decoratedEhcacheusing the properties specified for configuring the decorator.EhcachecreateDefaultDecoratedEhcache(Ehcache cache, java.util.Properties properties)This method is called when the factory is specified for the defaultCache in the config.-
Methods inherited from class net.sf.ehcache.constructs.CacheDecoratorFactory
generateDefaultDecoratedCacheName
-
-
-
-
Method Detail
-
createDecoratedEhcache
public Ehcache createDecoratedEhcache(Ehcache cache, java.util.Properties properties)
Description copied from class:CacheDecoratorFactoryCreates a decoratedEhcacheusing the properties specified for configuring the decorator.If the returned decorated cache has the same name as the underlying cache, then the original cache will be replaced by this new decorated cache in the CacheManager.
- Specified by:
createDecoratedEhcachein classCacheDecoratorFactory- Parameters:
cache- a reference to the owning cacheproperties- implementation specific properties configured as delimiter separated name value pairs in ehcache.xml- Returns:
- a decorated Ehcache
-
createDefaultDecoratedEhcache
public Ehcache createDefaultDecoratedEhcache(Ehcache cache, java.util.Properties properties)
Description copied from class:CacheDecoratorFactoryThis method is called when the factory is specified for the defaultCache in the config. Create the decoratedEhcacheusing the properties specified.If the returned decorated cache has the same name as the underlying cache, then the original cache will be replaced by this new decorated cache in the CacheManager.
- Specified by:
createDefaultDecoratedEhcachein classCacheDecoratorFactory- Parameters:
cache- a reference to the owning cacheproperties- implementation specific properties configured as delimiter separated name value pairs in ehcache.xml- Returns:
- a decorated Ehcache
-
-