org.apache.beehive.netui.util.cache
Class ClassLevelCache

Object
  extended by ClassLevelCache

public final class ClassLevelCache
extends Object

Thread-safe cache that is stored statically per-Class.


Constructor Summary
protected ClassLevelCache()
           
 
Method Summary
static void clearAll()
           
 Object get(String majorKey, String minorKey)
           
static ClassLevelCache getCache(Class c)
           
 Map getCacheMap(String cacheID)
           
 Map getCacheMap(String cacheID, boolean createIfMissing)
           
 Object getCacheObject(String cacheID)
           
 void put(String cacheID, String minorKey, Object value)
           
 void setCacheObject(String cacheID, Object object)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassLevelCache

protected ClassLevelCache()
Method Detail

getCache

public static ClassLevelCache getCache(Class c)

get

public Object get(String majorKey,
                  String minorKey)

getCacheObject

public Object getCacheObject(String cacheID)

setCacheObject

public void setCacheObject(String cacheID,
                           Object object)

getCacheMap

public Map getCacheMap(String cacheID)

getCacheMap

public Map getCacheMap(String cacheID,
                       boolean createIfMissing)

put

public void put(String cacheID,
                String minorKey,
                Object value)

clearAll

public static void clearAll()