org.lexevs.cache
Class CacheRegistry
java.lang.Object
org.lexevs.cache.CacheRegistry
- All Implemented Interfaces:
- org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean
public class CacheRegistry
- extends java.lang.Object
- implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheRegistry
public CacheRegistry()
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
destroy
public void destroy()
throws java.lang.Exception
- Specified by:
destroy
in interface org.springframework.beans.factory.DisposableBean
- Throws:
java.lang.Exception
getCacheStatisticsStringRepresentation
protected java.lang.String getCacheStatisticsStringRepresentation()
initializeCache
protected void initializeCache()
clearAll
public void clearAll()
getCaches
public java.util.Map<java.lang.String,CacheRegistry.CacheWrapper<java.lang.String,java.lang.Object>> getCaches()
getCache
public CacheRegistry.CacheWrapper<java.lang.String,java.lang.Object> getCache(java.lang.String cacheName,
boolean createIfNotPresent)
setCacheManager
public void setCacheManager(net.sf.ehcache.CacheManager cacheManager)
getCacheManager
public net.sf.ehcache.CacheManager getCacheManager()