org.jmage.cache
Class CacheManagerImpl

java.lang.Object
  extended by org.jmage.cache.CacheManagerImpl
All Implemented Interfaces:
CacheManager

public class CacheManagerImpl
extends java.lang.Object
implements CacheManager

CacheManagerImpl manages cache instances by cache Type and object type


Field Summary
protected static CacheManager cacheManager
           
protected  java.util.HashMap caches
           
static java.lang.String DISK
           
protected static org.apache.log4j.Logger log
           
static java.lang.String MEMORY
           
 
Method Summary
 Cache createCacheFor(java.lang.Class factoryType, java.util.Properties cacheProps)
           
 void destroyCacheFor(java.lang.Class factoryType)
           
 Cache getCacheFor(java.lang.Class factoryType)
           
static CacheManager getCacheManager()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MEMORY

public static final java.lang.String MEMORY
See Also:
Constant Field Values

DISK

public static final java.lang.String DISK
See Also:
Constant Field Values

cacheManager

protected static CacheManager cacheManager

caches

protected java.util.HashMap caches

log

protected static org.apache.log4j.Logger log
Method Detail

getCacheManager

public static CacheManager getCacheManager()

createCacheFor

public Cache createCacheFor(java.lang.Class factoryType,
                            java.util.Properties cacheProps)
                     throws CacheException
Specified by:
createCacheFor in interface CacheManager
Throws:
CacheException

getCacheFor

public Cache getCacheFor(java.lang.Class factoryType)
                  throws CacheException
Specified by:
getCacheFor in interface CacheManager
Throws:
CacheException

destroyCacheFor

public void destroyCacheFor(java.lang.Class factoryType)
                     throws CacheException
Specified by:
destroyCacheFor in interface CacheManager
Throws:
CacheException


Copyright © 2004-2008 Sourceforge. All Rights Reserved.