Interface Observable
-
- All Known Implementing Classes:
ChangeDispatcher
,CompositeNodeStore
,MemoryNodeStore
public interface Observable
AnObservable
supports attachingObserver
instances for listening to content changes.- See Also:
Observable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.Closeable
addObserver(Observer observer)
Register a newObserver
.
-
-
-
Method Detail
-
addObserver
java.io.Closeable addObserver(Observer observer)
Register a newObserver
. Clients need to callCloseable.close()
to stop getting notifications on the registered observer and to free up any resources associated with the registration.- Returns:
- a
Closeable
instance.
-
-