01: package dynaop.observer;
02:
03: /**
04: * Subject of observation.
05: *
06: * @author Bob Lee (crazybob@crazybob.org)
07: */
08: public interface Subject {
09:
10: /**
11: * Adds an <code>Observer</code>.
12: */
13: void addObserver(Observer observer);
14:
15: /**
16: * Removes an <code>Observer</code>.
17: */
18: void removeObserver(Observer observer);
19:
20: /**
21: * Notifies <code>Observer</code>s of a change.
22: */
23: void notifyObservers(Object argument);
24: }
|