public interface ObjectStore
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsObject(String id)
Check whether the given Object is already registered with this store.
|
boolean |
removeObject(String id) |
Object |
retrieveObject(String id)
Retrieve the given Object.
|
boolean |
storeObject(String id,
Object item)
Store the given Object.
|
boolean containsObject(String id) throws Exception
id - the ID to checktrue if the ID is stored or false if it could
not be foundIllegalArgumentException - if the given ID is nullException - if any implementation-specific error occured, e.g. when the store
is not availableboolean storeObject(String id, Object item) throws Exception
id - the ID to storeitem - the Object to store with the idtrue if the ID was stored properly, or false
if it already existedIllegalArgumentException - if the given ID cannot be stored or is
nullException - if the store is not available or any other
implementation-specific error occuredObject retrieveObject(String id) throws Exception
id - the ID to storeIllegalArgumentException - if the given ID cannot be stored or is
nullException - if the store is not available or any other
implementation-specific error occuredCopyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.