net.sf.ehcache.constructs.refreshahead
Class RefreshAheadCacheFactory
java.lang.Object
net.sf.ehcache.constructs.CacheDecoratorFactory
net.sf.ehcache.constructs.refreshahead.RefreshAheadCacheFactory
public class RefreshAheadCacheFactory
- extends CacheDecoratorFactory
Cache decorator factory for RefreshAheadCache
instances
- Author:
- cschanck
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RefreshAheadCacheFactory
public RefreshAheadCacheFactory()
createDecoratedEhcache
public Ehcache createDecoratedEhcache(Ehcache cache,
Properties properties)
- Description copied from class:
CacheDecoratorFactory
- Creates a decorated
Ehcache
using 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:
createDecoratedEhcache
in class CacheDecoratorFactory
- 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,
Properties properties)
- Description copied from class:
CacheDecoratorFactory
- This method is called when the factory is specified for the defaultCache in the config.
Create the decorated
Ehcache
using 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:
createDefaultDecoratedEhcache
in class CacheDecoratorFactory
- 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
Copyright 2001-2014, Terracotta, Inc.