public abstract class AbstractSerializableBean extends AbstractBean implements Serializable
AbstractBean
by implementing the
Serializable
interface. AbstractSerializableBean
correctly
serializes all Serializable
listeners that it contains. Implementors
that need to extends AbstractBean
or one of its subclasses and
require serialization should use this class if possible. If it is not
possible to extend this class, the implementation can guide implementors on
how to properly serialize the listeners.Serializable
,
ObjectInputStream
,
ObjectOutputStream
,
Serialized FormModifier | Constructor and Description |
---|---|
protected |
AbstractSerializableBean()
Creates a new instance of
AbstractSerializableBean . |
protected |
AbstractSerializableBean(PropertyChangeSupport pcs,
VetoableChangeSupport vcs)
Creates a new instance of
AbstractSerializableBean , using the
supplied support delegates. |
Modifier and Type | Method and Description |
---|---|
private void |
readObject(ObjectInputStream s) |
private void |
writeObject(ObjectOutputStream s) |
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
protected AbstractSerializableBean()
AbstractSerializableBean
.protected AbstractSerializableBean(PropertyChangeSupport pcs, VetoableChangeSupport vcs)
AbstractSerializableBean
, using the
supplied support delegates. Neither of these may be null
.pcs
- the property change support class to usevcs
- the vetoable change support class to useNullPointerException
- if any parameter is null
private void writeObject(ObjectOutputStream s) throws IOException
IOException
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses