Package nl.bebr.mapviewer.data.util
Class AbstractSerializableBean
- java.lang.Object
-
- nl.bebr.mapviewer.data.util.AbstractBean
-
- nl.bebr.mapviewer.data.util.AbstractSerializableBean
-
- All Implemented Interfaces:
Serializable
public abstract class AbstractSerializableBean extends AbstractBean implements Serializable
This subclass enhancesAbstractBeanby implementing theSerializableinterface.AbstractSerializableBeancorrectly serializes allSerializablelisteners that it contains. Implementors that need to extendsAbstractBeanor 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.- Author:
- Karl George Schaefer
- See Also:
Serializable,ObjectInputStream,ObjectOutputStream, Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractSerializableBean()Creates a new instance ofAbstractSerializableBean.protectedAbstractSerializableBean(PropertyChangeSupport pcs, VetoableChangeSupport vcs)Creates a new instance ofAbstractSerializableBean, using the supplied support delegates.
-
Method Summary
-
Methods inherited from class nl.bebr.mapviewer.data.util.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
-
-
-
-
Constructor Detail
-
AbstractSerializableBean
protected AbstractSerializableBean()
Creates a new instance ofAbstractSerializableBean.
-
AbstractSerializableBean
protected AbstractSerializableBean(PropertyChangeSupport pcs, VetoableChangeSupport vcs)
Creates a new instance ofAbstractSerializableBean, using the supplied support delegates. Neither of these may benull.- Parameters:
pcs- the property change support class to usevcs- the vetoable change support class to use- Throws:
NullPointerException- if any parameter isnull
-
-