com.centrasite.jaxr
Interface CentraSiteObjectCache


public interface CentraSiteObjectCache


Method Summary
 void addObjectCacheListener(CentraSiteObjectCacheListener ocl)
          Registers an object cache listener for being notified from this object cache.
 void clear()
          Removes all entries from the object cache.
 java.util.Collection getAllCachedObjects()
          Return the collection of all objects that are currently cached.
 void remove(javax.xml.registry.infomodel.RegistryObject obj)
          Remove keys of given registry object and all dependent objects from object cache.
 void removeObjectCacheListener(CentraSiteObjectCacheListener ocl)
          Removes a listener from this object cache.
 

Method Detail

getAllCachedObjects

java.util.Collection getAllCachedObjects()
Return the collection of all objects that are currently cached.

Returns:
the collection of all objects that are currently cached. The collection may be empty but not null.

clear

void clear()
Removes all entries from the object cache.


remove

void remove(javax.xml.registry.infomodel.RegistryObject obj)
            throws javax.xml.registry.JAXRException
Remove keys of given registry object and all dependent objects from object cache.

Parameters:
obj - object to be removed from cache (with all its dependent objects)
Throws:
javax.xml.registry.JAXRException

addObjectCacheListener

void addObjectCacheListener(CentraSiteObjectCacheListener ocl)
Registers an object cache listener for being notified from this object cache. If listener is null, no exception is thrown and no action is performed. If listener is already registered, it will be registered again.

Parameters:
ocl - object implementing the listener interface

removeObjectCacheListener

void removeObjectCacheListener(CentraSiteObjectCacheListener ocl)
Removes a listener from this object cache. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added to this component. If listener is null, no exception is thrown and no action is performed. If a listener was registered more than once only one of the registrations will be removed.

Parameters:
ocl - object implementing the listener interface