Class CacheMgr
- java.lang.Object
-
- org.apache.directory.fortress.core.util.cache.CacheMgr
-
public final class CacheMgr extends Object
This class is a facade and shields internal Fortress objects from specifics of the actual cache implementation that is in use.- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearAll()
Used to clear all elements from all cache objects.Cache
getCache(String cacheName)
Create a new reference to the ehcache cache implementation.static CacheMgr
getInstance()
Create or return the fortress cache manager reference.
-
-
-
Method Detail
-
getInstance
public static CacheMgr getInstance()
Create or return the fortress cache manager reference.- Returns:
- handle to the cache manager in effect for process.
-
getCache
public Cache getCache(String cacheName)
Create a new reference to the ehcache cache implementation.- Parameters:
cacheName
- contains the name of the cache to retrieve- Returns:
- reference to cache for specified object.
-
clearAll
public void clearAll()
Used to clear all elements from all cache objects.
-
-