Package org.apache.turbine.services
Schnittstelle ServiceManager
- Alle Superschnittstellen:
ServiceBroker
- Alle bekannten Implementierungsklassen:
TurbineServices
Classes that implement this interface can act as a manager for
Service
classes.
Functionality that ServiceManager
provides in addition
to ServiceBroker
functionality includes configuration
of the manager.- Version:
- $Id$
- Autor:
- Ilkka Priha, Martin Poeschl, Henning P. Schmiedehausen
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungorg.apache.commons.configuration2.Configuration
Get the configuration for this service manager.getServiceObject
(String name) Get an application specific service object.void
init()
Initialize this service manager.void
setApplicationRoot
(String applicationRoot) Set the application root.void
setConfiguration
(org.apache.commons.configuration2.Configuration configuration) Set the configuration object for the services broker.void
setServiceObject
(String name, Object value) Set an application specific service object that can be used by application specific services.Von Schnittstelle geerbte Methoden org.apache.turbine.services.ServiceBroker
getApplicationRoot, getConfiguration, getService, initService, isRegistered, shutdownService, shutdownServices
-
Methodendetails
-
init
Initialize this service manager.- Löst aus:
InitializationException
- if the service manager could not be initialized
-
getConfiguration
org.apache.commons.configuration2.Configuration getConfiguration()Get the configuration for this service manager.- Gibt zurück:
- Manager configuration.
-
setConfiguration
Set the configuration object for the services broker. This is the configuration that contains information about all services in the care of this service manager.- Parameter:
configuration
- Manager configuration.
-
setApplicationRoot
Set the application root.- Parameter:
applicationRoot
- application root
-
setServiceObject
Set an application specific service object that can be used by application specific services.- Parameter:
name
- name of service objectvalue
- value of service object
-
getServiceObject
Get an application specific service object.- Parameter:
name
- the name of the service object- Gibt zurück:
- Object application specific service object
-