public interface ServiceBroker
Service classes.
Functionality that ServiceBroker provides in addition
to InitableBroker functionality includes:
Services with Properties
based on a system wide configuration mechanism.| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.configuration.Configuration |
getConfiguration(String name)
Returns the configuration of a specific service.
|
Object |
getService(String name)
Returns an instance of requested Service.
|
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. |
void |
shutdownService(String name)
Shutdowns a Service.
|
void |
shutdownServices()
Shutdowns all Services.
|
boolean isRegistered(String serviceName)
TurbineResources.properties.serviceName - The name of the service whose existance to check.void initService(String name) throws InitializationException
name - The name of the service.InitializationException - if the service is unknown
or can't be initialized.void shutdownService(String name)
name - The name of the Service to be uninitialized.void shutdownServices()
Object getService(String name) throws InstantiationException
name - The name of the Service requested.InstantiationException - if the service is unknown or
can't be initialized.org.apache.commons.configuration.Configuration getConfiguration(String name)
name - The name of the service.Copyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.