org.jboss.dashboard.database.cache
Class CacheConfigurationGenerator
java.lang.Object
org.jboss.dashboard.factory.BasicFactoryElement
org.jboss.dashboard.database.cache.CacheConfigurationGenerator
- All Implemented Interfaces:
- Serializable, FactoryLifecycle
- Direct Known Subclasses:
- CustomCacheConfigurationGenerator
public abstract class CacheConfigurationGenerator
- extends BasicFactoryElement
This component creates the xml cache configuration for a given type of cache provider. Some managers may
configure the cache programmatically, some others may generate an xml and place it in a path to be read.
- See Also:
- Serialized Form
| Methods inherited from class org.jboss.dashboard.factory.BasicFactoryElement |
addPeriodicTask, addPeriodicTask, factoryLookup, getComponentAlias, getComponentDescription, getComponentName, getComponentScope, init, setComponentAlias, shutdown, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheConfigurationGenerator
public CacheConfigurationGenerator()
initializeCacheConfig
public abstract void initializeCacheConfig(CacheConfigurationManager cacheConfigurationManager)
- Create the cache configuration, either by generating an XML and placing it in the correct place or
by programmatically configuring whatever is needed.
- Parameters:
cacheConfigurationManager - The generic configuration manager where detailed cache options might be configured.
getCacheUsage
public abstract String getCacheUsage()
- Determine the type of cache usage to use
- Returns:
createCustomCacheRegion
public boolean createCustomCacheRegion(String cacheRegionName)
freeAllCache
public boolean freeAllCache()
Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.