org.jboss.cache.loader
Interface CacheLoaderAop

All Superinterfaces:
CacheLoader (src) , Service (src)

public interface CacheLoaderAop
extends CacheLoader (src)

Responsible for storing and retrieving objects to/from secondary storage.


Method Summary
 java.lang.Object loadObject(Fqn (src)  name)
          Loads an object from a persistent store.
 void removeObject(Fqn (src)  name)
          Removes the object with the given key from the persistent store.
 void storeObject(Fqn (src)  name, java.lang.Object pojo)
          Stores an object under a given key in the persistent store.
 
Methods inherited from interface org.jboss.cache.loader.CacheLoader (src)
commit, exists, get, get, getChildrenNames, loadEntireState, prepare, put, put, put, remove, remove, removeData, rollback, setCache, setConfig, storeEntireState
 
Methods inherited from interface org.jboss.system.Service (src)
create, destroy, start, stop
 

Method Detail

loadObject

public java.lang.Object loadObject(Fqn (src)  name)
                            throws java.lang.Exception
Loads an object from a persistent store.

Parameters:
name - The key under which the object is stored
Returns:
The object
Throws:
java.lang.Exception - Thrown if the object cannot be loaded

storeObject

public void storeObject(Fqn (src)  name,
                        java.lang.Object pojo)
                 throws java.lang.Exception
Stores an object under a given key in the persistent store. If the object is already present, it will be overwritten

Parameters:
name -
pojo -
Throws:
java.lang.Exception

removeObject

public void removeObject(Fqn (src)  name)
                  throws java.lang.Exception
Removes the object with the given key from the persistent store.

Parameters:
name -
Throws:
java.lang.Exception