|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fjank.jcache.CacheGroup
public class CacheGroup
Class for representin grouops in the cache. Groups can contain CacheObjects and other groups.
Field Summary | |
---|---|
protected String |
name
the name of this group. |
protected Map |
weakReferenceObjects
the WeakReference objects in this group. |
Constructor Summary | |
---|---|
CacheGroup(String name)
Creates a new CacheGroup object. |
|
CacheGroup(String name,
AttributesImpl attributes)
Creates a new CacheGroup object. |
Method Summary | |
---|---|
boolean |
contains(Object aName)
Checks wether this group contains the specified objects |
boolean |
containsValue(Object value)
returns a boolean indicating wether this value is present in the cache root. |
void |
destroy()
Destroys this group and all its children. |
Set |
entrySet()
|
Object |
get(Object aName)
gets an object from this group. |
CacheGroup |
getGroup(String group)
gets the named group from this group. |
String |
getName()
gets the name of this group. |
int |
getObjectCount()
Return the current number of objects in this group. |
void |
invalidate()
Setter for property valid. |
Set |
keySet()
|
void |
put(CacheGroup group)
puts the group into this group |
void |
put(Object name,
CacheObject object,
Object realObject)
puts the named object into this group. |
void |
removeMe(CacheObject object)
removes the object from this group. |
CacheObject |
replace(Object name,
CacheObject object)
Will create a new version of the object indentified by the name, replacing the current version with the object specified. |
Collection |
values()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String name
protected transient Map weakReferenceObjects
Constructor Detail |
---|
public CacheGroup(String name)
name
- the name of the CacheGroup to createpublic CacheGroup(String name, AttributesImpl attributes)
name
- the name of the CacheGroup to createattributes
- the attributes of the group to createMethod Detail |
---|
public Object get(Object aName)
name
- the name of the object to retrieve.
public void put(Object name, CacheObject object, Object realObject)
name
- the name of the objectobject
- the object to insert.public void put(CacheGroup group)
object
- the group to put.public CacheObject replace(Object name, CacheObject object)
name
- the name of the object to replace.object
- The new object to be put in the cache.
public void invalidate()
public void destroy()
public boolean contains(Object aName)
aName
- the name of the object to check
public void removeMe(CacheObject object)
object
- the object to remove.public CacheGroup getGroup(String group)
null
is returned.
group
- the group to get.
public String getName()
public int getObjectCount()
public boolean containsValue(Object value)
value
- the value to check
true
if the value is present, false
otherwise.public Set keySet()
public Collection values()
public Set entrySet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |