|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.compoundtheory.objectcache.DummyCacheManager
public class DummyCacheManager
This is a dummy class that pretty much does nothing
| Constructor Summary | |
|---|---|
DummyCacheManager(CacheConfig config)
Constructor |
|
| Method Summary | |
|---|---|
void |
add(java.lang.String clazz,
java.lang.String key,
java.lang.ref.SoftReference softRef)
Goes nowhere |
void |
discard(java.lang.String clazz,
java.lang.String key)
Doesn't discard, as it holds nothings |
java.lang.Object |
get(java.lang.String clazz,
java.lang.String key)
Will always throw a ObjectNotFoundException |
java.util.Set |
getCachedClasses()
returns an empty set |
boolean |
has(java.lang.String clazz,
java.lang.String key)
Never has anything |
java.lang.Object |
popReapedCFC(java.lang.ref.SoftReference softRef)
returns null |
void |
reap(java.lang.String clazz,
java.lang.ref.SoftReference softRef)
Does nothing |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DummyCacheManager(CacheConfig config)
config - does nothing with this| Method Detail |
|---|
public void add(java.lang.String clazz,
java.lang.String key,
java.lang.ref.SoftReference softRef)
add in interface ICacheManagerclazz - The class of the objectkey - The key of the objectsoftRef - The soft reference containing the CFC
public void discard(java.lang.String clazz,
java.lang.String key)
discard in interface ICacheManagerclazz - the class of the objectkey - the key to discard
public java.lang.Object get(java.lang.String clazz,
java.lang.String key)
throws ObjectNotFoundException
get in interface ICacheManagerclazz - The clas of the CFCkey - The key it was stored under
ObjectNotFoundException - if the object doesn't exist in the cache
public boolean has(java.lang.String clazz,
java.lang.String key)
has in interface ICacheManagerclazz - The class of CFCkey - The key the CFC is stored under
public void reap(java.lang.String clazz,
java.lang.ref.SoftReference softRef)
reap in interface ICacheManagerclazz - the class to reap tosoftRef - the soft reference to reappublic java.lang.Object popReapedCFC(java.lang.ref.SoftReference softRef)
popReapedCFC in interface ICacheManagersoftRef - the softreference to be clearedpublic java.util.Set getCachedClasses()
getCachedClasses in interface ICacheManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||