|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nodal.util.MonitoredUtil
Standard implementation of the Monitored interface.
This class is designed to be extended by any class that wishes to implement the Monitored interface. It implements all of the methods to manage Monitors and provides two methods (signalBeginChange and signalEndChange) that the ancestor classes should call whenever a modification is processed. These methods will the call beginChange and endChange for all registered Monitors.
Constructor Summary | |
protected |
MonitoredUtil()
|
Method Summary | |
boolean |
addMonitor(Monitor m)
Add a monitor that will track changes to this value. |
void |
clearMonitors()
Remove all previously added monitors. |
boolean |
removeMonitor(Monitor m)
Remove a previously added monitor. |
protected void |
signalBeginChange(Getter g)
Signal the start of a change to the Monitored resource. |
protected void |
signalEndChange(Getter g)
Signal the end of a change to the Monitored resource. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected MonitoredUtil()
Method Detail |
public boolean addMonitor(Monitor m)
addMonitor
in interface Monitored
public boolean removeMonitor(Monitor m)
removeMonitor
in interface Monitored
public void clearMonitors()
clearMonitors
in interface Monitored
protected void signalBeginChange(Getter g)
protected void signalEndChange(Getter g)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |