|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
agg.util.ExtObservable
public class ExtObservable
An extension of the native Java Observable
class that
addresses the need for explicit disposure arising from the circular
references inherent to the observer pattern (observer knows observable and
vice versa). In a multi-layer observer architecture, the disposure command
has to be passed way up the observer hierarchy to break the circular
references in every layer and thus make the participants amenable for garbage
collection.
Constructor Summary | |
---|---|
ExtObservable()
|
Method Summary | |
---|---|
void |
dispose()
Prepare myself for garbage collection. |
protected void |
finalize()
|
void |
setChanged()
|
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtObservable()
Method Detail |
---|
public void dispose()
Change_ObservableGone
with myself as the item is sent out
to all of my observers. Subclasses may override this to break their
individual circular references, but they should always include a call to
this original implementation.
dispose
in interface Disposable
Change_ObservableGone
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void setChanged()
setChanged
in class java.util.Observable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |