|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.util.Cache
org.progeeks.meta.util.MetaObjectCache
public class MetaObjectCache
Cache specific to storing and retrieving meta-objects based on their identity. Additionally, a context MetaObjectCache is provided for convenient access to a global cache.
Constructor Summary | |
---|---|
MetaObjectCache()
|
Method Summary | |
---|---|
MetaObject |
cacheMetaObject(MetaObject obj)
Caches the specified meta-object based on its identity. |
MetaObject |
cacheMetaObject(MetaObject obj,
boolean forceCache)
Caches the specified meta-object based on its identity. |
void |
cacheObject(java.lang.Object id,
java.lang.Object obj)
Caches the specified object associated with the specified key. |
static MetaObjectCache |
getContextCache()
Returns the current thread's context meta-object cache. |
static void |
setContextCache(MetaObjectCache cache)
Sets the current thread's context meta-object cache. |
Methods inherited from class org.progeeks.util.Cache |
---|
getCachedObject, uncacheObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetaObjectCache()
Method Detail |
---|
public MetaObject cacheMetaObject(MetaObject obj)
public MetaObject cacheMetaObject(MetaObject obj, boolean forceCache)
public void cacheObject(java.lang.Object id, java.lang.Object obj)
cacheObject
in class Cache
public static MetaObjectCache getContextCache()
public static void setContextCache(MetaObjectCache cache)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |