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 . |
<S extends Service> |
getServices(Class<S> clazz,
Object... keyPart)
Return the list of service singleton or part of multiton.
|
<S extends Service> |
getServices(UniqueKey<S> serviceKey)
Return the list of 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, getCommands, getCommands
<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
.<S extends Service> List<S> getServices(Class<S> clazz, Object... keyPart)
S
- a sub class of serviceclazz
- the service class to findkeyPart
- the unique key (in option)<S extends Service> List<S> getServices(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–2016 JRebirth OSS. All rights reserved.