org.lexevs.cache
Class CacheRegistry

java.lang.Object
  extended by 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


Nested Class Summary
static interface CacheRegistry.CacheWrapper<K,V>
           
 class CacheRegistry.EhCacheWrapper<K extends java.io.Serializable,V>
           
 
Constructor Summary
CacheRegistry()
           
 
Method Summary
 void afterPropertiesSet()
           
 void clearAll()
           
 void destroy()
           
 CacheRegistry.CacheWrapper<java.lang.String,java.lang.Object> getCache(java.lang.String cacheName, boolean createIfNotPresent)
           
 net.sf.ehcache.CacheManager getCacheManager()
           
 java.util.Map<java.lang.String,CacheRegistry.CacheWrapper<java.lang.String,java.lang.Object>> getCaches()
           
protected  java.lang.String getCacheStatisticsStringRepresentation()
           
protected  void initializeCache()
           
 void setCacheManager(net.sf.ehcache.CacheManager cacheManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheRegistry

public CacheRegistry()
Method Detail

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()

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.