| |
|
| org.apache.turbine.services.ServiceBroker
All known Subclasses: org.apache.turbine.services.BaseServiceBroker,
ServiceBroker | public interface ServiceBroker (Code) | | Classes that implement this interface can act as a broker for
Service classes.
Functionality that ServiceBroker provides in addition
to InitableBroker functionality includes:
- Maintaining service name to class name mapping, allowing
plugable service implementations.
- Providing
Services with Properties
based on a system wide configuration mechanism.
author: Kevin Burton author: Rafal Krzewski author: Daniel Rall author: Henning P. Schmiedehausen version: $Id: ServiceBroker.java 534527 2007-05-02 16:10:59Z tv $ |
Method Summary | |
Configuration | getConfiguration(String name) Returns the configuration of a specific service. | Service | getService(String name) Returns an instance of requested Service.
Parameters: name - The name of the Service requested. | void | initService(String name) Performs early initialization of the specified service. | boolean | isRegistered(String serviceName) Determines whether a service is registered in the configured
TurbineResources.properties .
Parameters: serviceName - The name of the service whose existance to check. | void | shutdownService(String name) Shutdowns a Service. | void | shutdownServices() Shutdowns all Services. |
getConfiguration | Configuration getConfiguration(String name)(Code) | | Returns the configuration of a specific service. Services
use this method to retrieve their configuration.
Parameters: name - The name of the service. Configuration of the requested service. |
isRegistered | boolean isRegistered(String serviceName)(Code) | | Determines whether a service is registered in the configured
TurbineResources.properties .
Parameters: serviceName - The name of the service whose existance to check. Registration predicate for the desired services. |
shutdownService | void shutdownService(String name)(Code) | | Shutdowns a Service.
This method is used to release resources allocated by a
Service, and return it to initial (uninitailized) state.
Parameters: name - The name of the Service to be uninitialized. |
shutdownServices | void shutdownServices()(Code) | | Shutdowns all Services.
This method is used to release resources allocated by
Services, and return them to initial (uninitialized) state.
|
|
|
|