net.ontopia.utils
Class CacheManager
java.lang.Object
net.ontopia.utils.CacheManager
- All Implemented Interfaces:
- CachedIF
public class CacheManager
- extends java.lang.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.
Field Summary |
protected java.util.Map<java.lang.Object,java.util.Set<CachedIF>> |
caches
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
caches
protected java.util.Map<java.lang.Object,java.util.Set<CachedIF>> caches
CacheManager
public CacheManager()
getGroups
public java.util.Set<java.lang.Object> getGroups()
getCached
public java.util.Set<CachedIF> getCached(java.lang.Object group)
addCached
public void addCached(CachedIF cached,
java.lang.Object group)
removeCached
public void removeCached(CachedIF cached,
java.lang.Object group)
refresh
public void refresh(java.lang.Object group)
refresh
public void refresh()
- Description copied from interface:
CachedIF
- Refreshes the cache.
- Specified by:
refresh
in interface CachedIF
Copyright © 2000-2012 Ontopia.