public interface ComponentPersister
| Modifier and Type | Method and Description | 
|---|---|
void | 
clear()
Clear this persister of everything stored. 
 | 
void | 
close()
Free resources used by the implementation. 
 | 
java.lang.String[] | 
list()
List the persisted components. 
 | 
void | 
persist(java.lang.String id,
       java.lang.Object proxy,
       ArooaSession session)
Persist the proxy Object. 
 | 
void | 
remove(java.lang.String id,
      ArooaSession session)
Remove an object from the store. 
 | 
java.lang.Object | 
restore(java.lang.String id,
       java.lang.ClassLoader classLoader,
       ArooaSession session)
Restore the proxy Object. 
 | 
void persist(java.lang.String id,
             java.lang.Object proxy,
             ArooaSession session)
      throws ComponentPersistException
The id is given although it could be discovered from the ComponentPool in the ArooaSession. This is for symmetry with the other methods of this interface.
id - The id for proxy.proxy - The object to persist.session - The session.ComponentPersistExceptionjava.lang.Object restore(java.lang.String id,
                         java.lang.ClassLoader classLoader,
                         ArooaSession session)
                  throws ComponentPersistException
id - The id.session - The session.ComponentPersistExceptionvoid remove(java.lang.String id,
            ArooaSession session)
     throws ComponentPersistException
id - The id of the component.session - The owning session.ComponentPersistExceptionjava.lang.String[] list()
                 throws ComponentPersistException
ComponentPersistExceptionvoid clear()
    throws ComponentPersistException
ComponentPersistExceptionvoid close()