R - A type that implements FacadeReadypublic interface WaveReady<R extends WaveReady<R>> extends FacadeReady<R>
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Command> |
getReturnCommand(WaveType waveType)
Return the return Command to call for given wave type.
|
WaveType |
getReturnWaveType(WaveType waveType)
Return the return wave type.
|
void |
listen(WaveChecker waveChecker,
Method method,
WaveType... waveType)
Begin to listen the type of wave for the current component.
|
void |
listen(WaveChecker waveChecker,
WaveType... waveType)
Begin to listen the type of wave for the current component.
|
void |
listen(WaveType... waveType)
Begin to listen the type of wave for the current component.
|
void |
registerCallback(WaveChecker waveChecker,
WaveType callType,
WaveType responseType,
Class<? extends Command> returnCommandClass)
Register a wave call back contract.
|
void |
registerCallback(WaveType callType,
WaveType responseType)
Register a wave call back contract.
|
void |
registerCallback(WaveType callType,
WaveType responseType,
Class<? extends Command> returnCommandClass)
Register a wave call back contract.
|
void |
sendWave(Wave wave)
Send a wave to the notifier.
|
Wave |
sendWave(WaveType waveType,
WaveData<?>... waveData)
Send a wave to the notifier.
|
void |
unlisten(WaveType... waveTypes)
Stop to listen the type of wave for the current component.
|
getKey, getLocalFacade, release, setKey, setLocalFacade, setupattachUi, getModelgetService, returnDatacallCommand, callCommand, getCommandvoid listen(WaveType... waveType)
org.jrebirth.af.core.resource.provided.JRebirthParameters.DEVELOPER_MODE parameter is truewaveType - the type(s) to listenvoid listen(WaveChecker waveChecker, WaveType... waveType)
org.jrebirth.af.core.resource.provided.JRebirthParameters.DEVELOPER_MODE parameter is true
The wave checker is used to filter the wave if the checker returns falsewaveChecker - the wave checker used to forward the wave only if the checker return truewaveType - the type(s) to listenvoid listen(WaveChecker waveChecker, Method method, WaveType... waveType)
org.jrebirth.af.core.resource.provided.JRebirthParameters.DEVELOPER_MODE parameter is true
The wave checker is used to filter the wave if the checker returns falsewaveChecker - the wave checker used to forward the wave only if the checker return truemethod - the annotated method concernedwaveType - the type(s) to listenvoid registerCallback(WaveChecker waveChecker, WaveType callType, WaveType responseType, Class<? extends Command> returnCommandClass)
org.jrebirth.af.core.resource.provided.JRebirthParameters.DEVELOPER_MODE parameter is truewaveChecker - the wave checker used to forward the wave only if the checker return truecallType - the wave type mapped to this service.responseType - the wave type of the wave emitted in returnreturnCommandClass - the command class to call to process the service resultvoid registerCallback(WaveType callType, WaveType responseType, Class<? extends Command> returnCommandClass)
org.jrebirth.af.core.resource.provided.JRebirthParameters.DEVELOPER_MODE parameter is truecallType - the wave type mapped to this service.responseType - the wave type of the wave emitted in returnreturnCommandClass - the command class to call to process the service resultvoid registerCallback(WaveType callType, WaveType responseType)
org.jrebirth.af.core.resource.provided.JRebirthParameters.DEVELOPER_MODE parameter is truecallType - the wave type mapped to this service.responseType - the wave type of the wave emitted in returnvoid unlisten(WaveType... waveTypes)
waveTypes - the type(s) to stop to listenvoid sendWave(Wave wave)
wave - the wave to sendWave sendWave(WaveType waveType, WaveData<?>... waveData)
waveType - the type of wave to sendwaveData - the data (key-valueWaveType getReturnWaveType(WaveType waveType)
waveType - the source wave typeCopyright © 2011–2014 JRebirth OSS. All rights reserved.