public interface Notifier
| Modifier and Type | Method and Description |
|---|---|
void |
listen(Component<?> linkedObject,
WaveChecker waveChecker,
Method method,
WaveType... waveTypes)
Start to listen a defined type of wave.
|
void |
sendWave(Wave wave)
Send wave to all facade.
|
void |
unlisten(Component<?> linkedObject,
WaveType... waveType)
Stop to listen a defined type of wave.
|
void |
unlistenAll(Component<?> linkedObject)
Stop to listen all waveType listened by the component.
|
void sendWave(Wave wave) throws JRebirthThreadException
wave - the object that information dataJRebirthThreadException - if called outside the JRebirthThreadvoid listen(Component<?> linkedObject, WaveChecker waveChecker, Method method, WaveType... waveTypes) throws JRebirthThreadException
linkedObject - an object that can process the content of a wavewaveChecker - the wave checker to filter unwanted wave to be processed by other componentsmethod - the default method to callwaveTypes - the type(s) of wave that interests the object (one or many)JRebirthThreadException - if called outside the JRebirthThreadvoid unlisten(Component<?> linkedObject, WaveType... waveType) throws JRebirthThreadException
linkedObject - an object that can process the content of a wavewaveType - the type of wave that doesn't interest the object anymore (one or many)JRebirthThreadException - if called outside the JRebirthThreadvoid unlistenAll(Component<?> linkedObject) throws JRebirthThreadException
linkedObject - an object that can process the content of a waveJRebirthThreadException - if called outside the JRebirthThreadCopyright © 2011–2015 JRebirth OSS. All rights reserved.