This class implements a manager of org.objectweb.jonas.service.Service for JOnAS.
The services are defined in the jonas.properties files
- 'jonas.services' property defines the list of the services,
- for each service
- 'jonas.service..class' property defines the class of the
implementation of the service,
- 'jonas.service..XXXX' properties define the configuration
of the service
author: Helene Joanin author: Contributor(s): author: 01/06/15: Regis Le Brettevillois - Libelis author: 02/06 : Florent Benoit & Ludovic Bert : Ear service/Web Container service author: Philippe Durieux author: 03/01/14 Adriana Danes : pass the entire property name (jonas.service..XXXX) author: in the configuration context at service creation time
createServiceContextFor(String serviceName) Creates and returns the context for the configuration of the service
which have the given name.
(Uses the 'jonas.service..XXXX' properties for that)
Parameters: serviceName - the name of the service to obtain the configuration.
createServiceFrom(String serviceName) Creates and returns the service which have the given name.
(Uses the 'jonas.service..class' property for that)
Parameters: serviceName - the name of the service to instanciate.
Creates and returns the context for the configuration of the service
which have the given name.
(Uses the 'jonas.service..XXXX' properties for that)
Parameters: serviceName - the name of the service to obtain the configuration. Context the context for the service. throws: NamingException - if the context can't be built.
Creates and returns the service which have the given name.
(Uses the 'jonas.service..class' property for that)
Parameters: serviceName - the name of the service to instanciate. Service the instance of the service. throws: ServiceException - if the service can't be created.
Get the service which have the given name
Parameters: name - the given name the service which have the given name throws: ServiceException - if the service can't be retrieved.
For each service, create it and its associated configuration context.
(creates services, contextsByService and servicesByName)
throws: ServiceException - if the services can't be read.
Management Method: Stop all services.
The services are stopped in the reverse order of their starting.
(Continue the processing of stopping for the others services, even if there is a problem
for one service.)
throws: ServiceException - if the service can't be stopped.