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.ComponentPersistException
java.lang.Object restore(java.lang.String id, java.lang.ClassLoader classLoader, ArooaSession session) throws ComponentPersistException
id
- The id.session
- The session.ComponentPersistException
void remove(java.lang.String id, ArooaSession session) throws ComponentPersistException
id
- The id of the component.session
- The owning session.ComponentPersistException
java.lang.String[] list() throws ComponentPersistException
ComponentPersistException
void clear() throws ComponentPersistException
ComponentPersistException
void close()