dsto.dfc.swing.persistence
Class PersistenceMonitor

java.lang.Object
  extended by 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

Constructor Summary
PersistenceMonitor(PersistenceManager manager, IDataObject object, boolean weakListener)
          Create a new instance.
 
Method Summary
 void propertyValueChanged(PropertyEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

propertyValueChanged

public void propertyValueChanged(PropertyEvent e)
Specified by:
propertyValueChanged in interface PropertyListener


Copyright © 2008 Commonwealth of Australia