com.opensymphony.module.propertyset
Class SerializablePropertySet
java.lang.Object
|
+--com.opensymphony.module.propertyset.AbstractPropertySet
|
+--com.opensymphony.module.propertyset.MemoryPropertySet
|
+--com.opensymphony.module.propertyset.SerializablePropertySet
- All Implemented Interfaces:
- PropertySet, java.io.Serializable
- Direct Known Subclasses:
- XMLPropertySet
- public class SerializablePropertySet
- extends MemoryPropertySet
- implements java.io.Serializable
The SerializablePropertySet is a PropertySet implementation that
will store any primitive of serializable object in an internal Map
which is stored in memory and can be loaded/saved by serializing the
entire SerializablePropertySet.
This offers the most basic form of persistence. Note that
setObject()
will throw an IllegalPropertyException if
the passed object does not implement Serializable.
- Version:
- $Revision: 1.5 $
- Author:
- Joe Walnes
- See Also:
PropertySet
,
MemoryPropertySet
, Serialized Form
Fields inherited from interface com.opensymphony.module.propertyset.PropertySet |
BOOLEAN, DATA, DATE, DOUBLE, INT, LONG, OBJECT, PROPERTIES, STRING, TEXT, XML |
Method Summary |
protected void |
setImpl(int type,
java.lang.String key,
java.lang.Object value)
|
Methods inherited from class com.opensymphony.module.propertyset.AbstractPropertySet |
getBoolean, getData, getDate, getDouble, getInt, getKeys, getKeys, getKeys, getLong, getObject, getProperties, getSchema, getString, getText, getXML, isSettable, setAsActualType, setBoolean, setData, setDate, setDouble, setInt, setLong, setObject, setProperties, setSchema, setString, setText, setXML, supportsType, supportsTypes, toString, type, type |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SerializablePropertySet
public SerializablePropertySet()
setImpl
protected void setImpl(int type,
java.lang.String key,
java.lang.Object value)
throws IllegalPropertyException,
DuplicatePropertyKeyException
- Overrides:
setImpl
in class MemoryPropertySet