com.waveset.adapter
Class SimulatedResourceAdapter.ExtendedResourceCache

java.lang.Object
  extended bycom.waveset.adapter.XMLResourceAdapter.ResourceCache
      extended bycom.waveset.adapter.SimulatedResourceAdapter.ExtendedResourceCache
Enclosing class:
SimulatedResourceAdapter

public static class SimulatedResourceAdapter.ExtendedResourceCache
extends XMLResourceAdapter.ResourceCache


Constructor Summary
SimulatedResourceAdapter.ExtendedResourceCache(java.lang.String resource, java.lang.String path, boolean caseInsensitive)
           
 
Method Summary
 GenericObject get(java.lang.String name)
           
 GenericObject get(java.lang.String name, java.lang.String guid)
           
protected  java.lang.String getAccountMapKey(GenericObject geo)
           
protected  void loadCache()
           
 void put(GenericObject obj)
           
 void remove(java.lang.String name)
           
 void remove(java.lang.String name, java.lang.String guid)
           
 void removeAll()
          Removes all users from the cache and flushes it.
 
Methods inherited from class com.waveset.adapter.XMLResourceAdapter.ResourceCache
cacheToXml, flush, getSortedNames, initializeCache, reloadIfStale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimulatedResourceAdapter.ExtendedResourceCache

public SimulatedResourceAdapter.ExtendedResourceCache(java.lang.String resource,
                                                      java.lang.String path,
                                                      boolean caseInsensitive)
                                               throws WavesetException
Method Detail

get

public GenericObject get(java.lang.String name)
                  throws WavesetException
Overrides:
get in class XMLResourceAdapter.ResourceCache
Throws:
WavesetException

get

public GenericObject get(java.lang.String name,
                         java.lang.String guid)
                  throws WavesetException
Throws:
WavesetException

put

public void put(GenericObject obj)
Overrides:
put in class XMLResourceAdapter.ResourceCache

remove

public void remove(java.lang.String name)
Overrides:
remove in class XMLResourceAdapter.ResourceCache

remove

public void remove(java.lang.String name,
                   java.lang.String guid)

removeAll

public void removeAll()
               throws WavesetException
Removes all users from the cache and flushes it.

Overrides:
removeAll in class XMLResourceAdapter.ResourceCache
Throws:
WavesetException

getAccountMapKey

protected java.lang.String getAccountMapKey(GenericObject geo)
Overrides:
getAccountMapKey in class XMLResourceAdapter.ResourceCache

loadCache

protected void loadCache()
                  throws WavesetException
Overrides:
loadCache in class XMLResourceAdapter.ResourceCache
Throws:
WavesetException