com.waveset.adapter
Class XMLResourceAdapter.ResourceCache
java.lang.Object
com.waveset.adapter.XMLResourceAdapter.ResourceCache
- Direct Known Subclasses:
- SimulatedResourceAdapter.ExtendedResourceCache
- Enclosing class:
- XMLResourceAdapter
- public static class XMLResourceAdapter.ResourceCache
- extends java.lang.Object
Inner class holding a cache of accounts for a particular
resource.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLResourceAdapter.ResourceCache
protected XMLResourceAdapter.ResourceCache()
XMLResourceAdapter.ResourceCache
public XMLResourceAdapter.ResourceCache(java.lang.String resource,
java.lang.String path)
throws WavesetException
initializeCache
protected void initializeCache(java.lang.String resource,
java.lang.String path)
throws WavesetException
- Throws:
WavesetException
get
public GenericObject get(java.lang.String name)
throws WavesetException
- Throws:
WavesetException
put
public void put(GenericObject obj)
remove
public void remove(java.lang.String name)
removeAll
public void removeAll()
throws WavesetException
- Removes all users from the cache and flushes it.
- Throws:
WavesetException
flush
public void flush()
throws WavesetException
- Throws:
WavesetException
cacheToXml
public java.lang.String cacheToXml()
getSortedNames
public java.util.List getSortedNames()
loadCache
protected void loadCache()
throws WavesetException
- Throws:
WavesetException
reloadIfStale
protected void reloadIfStale()
throws WavesetException
- Throws:
WavesetException
getAccountMapKey
protected java.lang.String getAccountMapKey(GenericObject geo)