|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.constructs.CacheDecoratorFactory
public abstract class CacheDecoratorFactory
An abstract factory for creating decorated Ehcache instances. Implementing classes should provide their own concrete factory extending this factory.
Field Summary | |
---|---|
static String |
DASH
Dash string : "-" |
Constructor Summary | |
---|---|
CacheDecoratorFactory()
|
Method Summary | |
---|---|
abstract Ehcache |
createDecoratedEhcache(Ehcache cache,
Properties properties)
Creates a decorated Ehcache using the properties specified for configuring the decorator. |
abstract Ehcache |
createDefaultDecoratedEhcache(Ehcache cache,
Properties properties)
This method is called when the factory is specified for the defaultCache in the config. |
static String |
generateDefaultDecoratedCacheName(Ehcache cache,
String cacheNameSuffix)
Utility method to generate name of decorated cache to be created using factory specified in defaultCache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DASH
Constructor Detail |
---|
public CacheDecoratorFactory()
Method Detail |
---|
public abstract Ehcache createDecoratedEhcache(Ehcache cache, Properties properties)
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.
cache
- a reference to the owning cacheproperties
- implementation specific properties configured as delimiter
separated name value pairs in ehcache.xml
public abstract Ehcache createDefaultDecoratedEhcache(Ehcache cache, Properties properties)
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.
cache
- a reference to the owning cacheproperties
- implementation specific properties configured as delimiter
separated name value pairs in ehcache.xml
public static String generateDefaultDecoratedCacheName(Ehcache cache, String cacheNameSuffix)
cache
- the underlying cachecacheNameSuffix
- Name to be used as suffix. This is normally provided as a property in the decorator config properties. If this parameter
is null or empty string, cache.getName() is returned
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |