[Index]

services


Allows objects to be registered that will automatically be injected into subsequent components that are configured for automatic dependency injection.


Property Summary

name A name, can be any text.
registeredServices Service definitions.
services Provide access to the registered services.
stop This flag is set by the stop method and should be examined by any Stoppable jobs in their processing loops.

Example Summary

Example 1 The Development guide has numerous examples using this job.

Property Detail

name

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredNo.

A name, can be any text.

registeredServices

Configured ByELEMENT
AccessWRITE_ONLY
RequiredNo, but pointless if missing.

Service definitions. These are simple beans that define the services being registered. Because of their simplicity they do not have their own type and can be specified using the is.

The properties of the service definition beans are:

service
The service object being registered.
qualifier
A qualified that provides extra information for the type of service.
intransigent
Whether or not to supply a service if the qualifier does not match that which is required.

services

AccessREAD_ONLY

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)}
 

stop

AccessREAD_ONLY
RequiredRead Only.

This flag is set by the stop method and should be examined by any Stoppable jobs in their processing loops.


Examples

Example 1

The Development guide has numerous examples using this job.


(c) R Gordon Ltd 2005 - Present