|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.figure8.join.services.cache.EhCacheManager
public class EhCacheManager
Implementation of CacheManager
using EHCache provider
(see http://ehcache.sourceforge.net). It encapsulates a EH CacheManager.
This implementation is using a configuration file name "join-ehcache.xml".
This file must be a classloader available resource.
Field Summary | |
---|---|
static java.lang.String |
CONFIGURATION_FILE
Constant for EHCache configuration file |
Constructor Summary | |
---|---|
EhCacheManager()
Creates a new instance of EhCacheManager |
Method Summary | |
---|---|
void |
clearCaches()
Clear (ie. flush) all managed caches. |
void |
createCaches()
Create all managed caches. |
Cache |
getCache(java.lang.String key)
Retrieve a Cache using its key |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONFIGURATION_FILE
Constructor Detail |
---|
public EhCacheManager()
Method Detail |
---|
public void clearCaches() throws CacheException
clearCaches
in interface CacheManager
CacheException
- if at least one of the caches cannot be clearedpublic void createCaches() throws CacheException
createCaches
in interface CacheManager
CacheException
- if at least one of the caches cannot be createdpublic Cache getCache(java.lang.String key)
getCache
in interface CacheManager
key
- The key within is store the cache into the manager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |