dsto.dfc.swing.persistence
Class PersistenceMonitor
java.lang.Object
dsto.dfc.swing.persistence.PersistenceMonitor
- All Implemented Interfaces:
- PropertyListener, EventListener
public class PersistenceMonitor
- extends Object
- implements PropertyListener
Connects changes to an IDataObject/IDataBean to mark the object changed in
a PersistenceManager
.
- Version:
- $Revision$
- Author:
- mpp
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PersistenceMonitor
public PersistenceMonitor(PersistenceManager manager,
IDataObject object,
boolean weakListener)
- Create a new instance.
- Parameters:
manager
- The persistence manager that the object is registered with.object
- The peristent object.weakListener
- If true, the monitor will register itself as a weak
listener on object, allowing object to be GC'd when nothing else refers
to it.
propertyValueChanged
public void propertyValueChanged(PropertyEvent e)
- Specified by:
propertyValueChanged
in interface PropertyListener
Copyright © 2008 Commonwealth of Australia