net.ontopia.utils
Class CacheManager
java.lang.Object
net.ontopia.utils.CacheManager
- All Implemented Interfaces:
- CachedIF
public class CacheManager
- extends Object
- implements CachedIF
INTERNAL: A manager class that manages cached objects. Cached objects
can be registered with the cache manager in order to follow the
life cycle set by the environment using the cache manager. The
cached objects must implement the CachedIF interface.
Note that this class also implements the CachedIF interface, so
that it can itself be fully refreshed and also be managed by other
cache managers.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
caches
protected Map<Object,Set<CachedIF>> caches
CacheManager
public CacheManager()
getGroups
public Set<Object> getGroups()
getCached
public Set<CachedIF> getCached(Object group)
addCached
public void addCached(CachedIF cached,
Object group)
removeCached
public void removeCached(CachedIF cached,
Object group)
refresh
public void refresh(Object group)
refresh
public void refresh()
- Description copied from interface:
CachedIF
- Refreshes the cache.
- Specified by:
refresh
in interface CachedIF
Copyright © 2000-2012 Ontopia.