|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for self-updating caches consisting of any single type of object. The class of objects to be held in the cache is not specified by this interface.
Updateable
Method Summary | |
void |
addCacheListener(CacheListener listener)
Registers a CacheListener for this Cache . |
CacheListener[] |
getCacheListeners()
Retrieves all the listeners associated with this Cache . |
Cacheable |
getItem(java.lang.String name)
Gets an item from the cache. |
Cacheable |
getItem(java.lang.String name,
java.lang.String type)
Gets an item of the specified type from the cache. |
java.util.Iterator |
listCachedFiles()
Returns an iterator over a list of CacheElement instances. |
void |
removeCacheListener(CacheListener listener)
Unregisters a CacheListener for this Cache . |
void |
stopAutoUpdate()
Stops automatically updating the cache. |
Method Detail |
public void addCacheListener(CacheListener listener)
CacheListener
for this Cache
.listener
- the CacheListener
to be registered.public void removeCacheListener(CacheListener listener)
CacheListener
for this Cache
.listener
- the CacheListener
to be unregistered.public CacheListener[] getCacheListeners()
Cache
.CacheListener
spublic void stopAutoUpdate()
public java.util.Iterator listCachedFiles()
CacheElement
instances.CacheElement
instances
that correspond to templates in the cachepublic Cacheable getItem(java.lang.String name)
name
- a string uniquely identifying the item.null
if not found.public Cacheable getItem(java.lang.String name, java.lang.String type)
name
- a string uniquely identifying the item.type
- the type of item to be retrievednull
if not found.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |