public class KernelObservable extends Observable
Observable
which can handle observers from any Module
.Constructor and Description |
---|
KernelObservable()
Creates a kernel observable.
|
Modifier and Type | Method and Description |
---|---|
void |
addObserver(Observer observer)
Adds an observer to the set of observers for this observable.
|
void |
dispose()
Disposes this kernel observable.
|
clearChanged, countObservers, deleteObserver, deleteObservers, getObservers, hasChanged, notifyObservers, setChanged
public KernelObservable()
This registers a feature state listener in the kernel. The dispose()
method has to be called once this
object is not used anymore in order to unregister the feature state listener.
public void addObserver(Observer observer)
If the observer is already added, nothing changes.
The order in which notifications will be delivered to multiple observers is not specified.
addObserver
in class Observable
observer
- an observer to add.IllegalStateException
- if this kernel observable has been disposed.public void dispose()