public class ServicesJob extends SimpleJob implements ServiceProvider
Modifier and Type | Class and Description |
---|---|
static class |
ServicesJob.ServiceDefinition
Definition of a service.
|
Constructor and Description |
---|
ServicesJob() |
Modifier and Type | Method and Description |
---|---|
protected int |
execute()
Execute this job.
|
Services |
getServices()
Provider the services.
|
protected void |
onReset()
Allow sub classes to do something on reset.
|
void |
setRegisteredServices(int index,
ServicesJob.ServiceDefinition serviceDef) |
fireDestroyedState, force, getStateChanger, hardReset, iconHelper, isStop, onDestroy, onStop, run, sleep, softReset, stateHandler, stop
configure, getName, logger, logger, loggerName, save, setName, toString
addIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaContext, setArooaSession
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addStateListener, lastStateEvent, removeStateListener
protected int execute() throws java.lang.Throwable
SimpleJob
protected void onReset()
SimpleJob
public Services getServices()
ServiceProvider
getServices
in interface ServiceProvider
Property: services
Description: Provide access to the registered services.
Services are registered by name using object toString and then if qualified ';' and the qualifier. If this job has an id my-services and the service has a toString of MyCafe and it is qualified with qualifier Vegetarian then it could be referenced as:
${my-services.services.service(MyCafe;Vegetarian)}
public void setRegisteredServices(int index, ServicesJob.ServiceDefinition serviceDef)