public class KernelSimpleObservable extends SimpleObservable
SimpleObservable
which can handle observers from any Module
.Constructor and Description |
---|
KernelSimpleObservable()
Creates a kernel simple observable.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes this kernel simple observable.
|
void |
setObserver(Observer observer)
Sets the observer of this simple observable.
|
clearChanged, getObserver, hasChanged, notifyObserver, setChanged, unsetObserver, unsetObserver
public KernelSimpleObservable()
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 dispose()
public void setObserver(Observer observer)
setObserver
in class SimpleObservable
observer
- the observer to set.IllegalStateException
- if this kernel simple observable has been disposed.