| Modifier and Type | Field and Description |
|---|---|
| public static final String | DASH
Dash string : "-" |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Ehcache | Returns: a decorated Ehcachea reference to the owning cache cache, Properties implementation specific properties configured as delimiter
separated name value pairs in ehcache.xml properties)Creates a decorated |
| public abstract Ehcache | Returns: a decorated Ehcachea reference to the owning cache cache, Properties implementation specific properties configured as delimiter
separated name value pairs in ehcache.xml properties)This method is called when the factory is specified for the defaultCache in the config. |
| public static String | Returns: Name to be used for the new decorated cache in the form of cache.getName() + "-" + cacheNameSuffix or cache.getName() if cacheNameSuffix is nullthe underlying cache cache, String 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 cacheNameSuffix)Utility method to generate name of decorated cache to be created using factory specified in defaultCache. |
| DASH | back to summary |
|---|---|
| public static final String DASH Dash string : "-" | |
| CacheDecoratorFactory | back to summary |
|---|---|
| public CacheDecoratorFactory() | |
| createDecoratedEhcache | back to summary |
|---|---|
| public abstract Ehcache createDecoratedEhcache(Ehcache cache, Properties properties) Creates a decorated 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.
| |
| createDefaultDecoratedEhcache | back to summary |
|---|---|
| public abstract Ehcache createDefaultDecoratedEhcache(Ehcache cache, Properties properties) This method is called when the factory is specified for the defaultCache in the config.
Create the decorated 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.
| |
| generateDefaultDecoratedCacheName | back to summary |
|---|---|
| public static String generateDefaultDecoratedCacheName(Ehcache cache, String cacheNameSuffix) Utility method to generate name of decorated cache to be created using factory specified in defaultCache.
| |