|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This class is a clone of the standard's api observer.
Since the observable interface is implemented as well, this interface is needed to replace the type in the update method.
Reason for using our own observer/observable's is that observables
must be aggregated often (extending java.util.Observable is not
always feasible) and also for debugging reasons. Observables that hang on to
their observers too long are a major reason for memory leaks.
Note that the observer type specified in the update method is
not java.util.Observer, but it is
com.tensegrity.generic.util.Observer.
Observable| Method Summary | |
void |
update(Observable observable,
java.lang.Object arg)
The callback method of an observer that is invoked by the Observable each time the state has changed. |
| Method Detail |
public void update(Observable observable,
java.lang.Object arg)
Observable each time the state has changed.
observable - the observable that triggered the call.arg - an object carrying additional information.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||