| com.jeta.swingbuilder.interfaces.app.ObjectStore
All known Subclasses: com.jeta.swingbuilder.app.ApplicationStateStore,
ObjectStore | public interface ObjectStore (Code) | | This interface describes a service used to store/retrive objects based on a
key name. Top level application services can use this to store information
such as user properties between program invocations. The keyName is unique,
so only one object per keyname. Of course, a single object can be composed of
many subobjects. Serialization is used as the storage mechanism, so the
objects must be serializable.
author: Jeff Tassin |
delete | public void delete(String keyName) throws IOException(Code) | | Deletes the object from the store cache as well as on disk
|
load | public Object load(String keyName) throws IOException(Code) | | loads the named object from the store. This object is also deserialized
at this point since the store only keeps track of serialized data
Parameters: keyName - the unique name of the lobject to retrieve the instantiated object from the store throws: IOException - if an error occurs during deserialization |
load | public Object load(String keyName, Object defaultValue) throws IOException(Code) | | loads the named object from the store. This object is also deserialized
at this point since the store only keeps track of serialized data
Parameters: keyName - the unique name of the lobject to retrieve Parameters: defaultValue - the value to return if the name is not found in the store the instantiated object from the store. The default value isreturned if the name is not found. throws: IOException - if an error occurs during deserialization |
store | public void store(String keyName, Object obj) throws IOException(Code) | | stores the named object to the store. The object is serialized here so
and exception can be thrown.
|
|
|