Nuxeo 5

Nuxeo 5 Component
org.nuxeo.runtime.api.ServiceManagement

Individual Documentation Coverage

done proportion
100.0 %


The service management component is describing the application layout and service bindings

The application is split in groups of services. Each group can be located on a different host (i.e. different JVM).
A host exposing services is named "server". So a server may expose one or more service groups.
This component let you define the application layout and define each server and service groups that
form the application.

Thus the main responsibility of a server is to expose (locate and instantiate) services.
Each server definition should specify a locator to be used to lookup services.

If the service is not found on any server Nuxeo Runtime will be used to locate it.

To bind services to a server you should specify the group containing the service.
And then bind the group to a server.

If you don't specify any group (or the group you specify is not bound to any server) the service
will be automatically added to the root group (the default one)




Author: Bogdan Stefanescu ([email protected])

Version: missing

Location: nuxeo-runtime/nuxeo-runtime/src/main/resources/OSGI-INF/ServiceManagement.xml

Require

No requirements

Required by

Not required

Implementation


Extension Points:

servers

Define a server that expose services.

A server is

services

Define a service binding.

Services are part of a group. If no group is specified the root group will be used

Groups are bound to servers. If a group is not bound services in the group will be considered
to be part of the root group

Services are defined by a class and an optional name. The service locator used
for the server exposing the service will locate the service using these informations.
You can optionally specify a custom locator by using the "locator" sub-element.

Services bindings may also define an adapter that will be used to adapt the service immediately
after its instantiation. This can be used to decorate services (for example you can decorate a service to
enable caching on the client side) or to handle session oriented services.
This way you can start the session using the adapter.


Has contribution from:

Last generation: 18:21:25 CEST 11/07/2009