public interface ServiceReady extends CommandReady
| Modifier and Type | Method and Description |
|---|---|
<S extends Service> |
getService(Class<S> clazz,
Object... keyPart)
Return the service singleton or part of multiton.
|
<S extends Service> |
getService(UniqueKey<S> serviceKey)
Return the service singleton or part of multiton according to
UniqueKey. |
Wave |
returnData(Class<? extends Service> serviceClass,
WaveType waveType,
WaveData<?>... data)
Send a wave used to return data from a service.
|
callCommand, callCommand, getCommand, getCommand<S extends Service> S getService(Class<S> clazz, Object... keyPart)
S - a sub class of serviceclazz - the service class to findkeyPart - the unique key (in option)<S extends Service> S getService(UniqueKey<S> serviceKey)
UniqueKey.Wave returnData(Class<? extends Service> serviceClass, WaveType waveType, WaveData<?>... data)
serviceClass - the service calledwaveType - the type of the wavedata - the data to transportCopyright © 2011–2015 JRebirth OSS. All rights reserved.