|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Classes that implement this interface can act as a broker for
Service
classes.
Functionality that ServiceBroker
provides in addition
to InitableBroker
functionality includes:
Services
with Properties
based on a system wide configuration mechanism.
Method Summary | |
org.apache.commons.configuration.Configuration |
getConfiguration(java.lang.String name)
Returns the configuration of a specific service. |
Service |
getService(java.lang.String name)
Returns an instance of requested Service. |
void |
initService(java.lang.String name)
Performs early initialization of the specified service. |
boolean |
isRegistered(java.lang.String serviceName)
Determines whether a service is registered in the configured TurbineResources.properties . |
void |
shutdownService(java.lang.String name)
Shutdowns a Service. |
void |
shutdownServices()
Shutdowns all Services. |
Method Detail |
public boolean isRegistered(java.lang.String serviceName)
TurbineResources.properties
.
serviceName
- The name of the service whose existance to check.
public void initService(java.lang.String name) throws InitializationException
name
- The name of the service.
InitializationException
- if the service is unknown
or can't be initialized.public void shutdownService(java.lang.String name)
name
- The name of the Service to be uninitialized.public void shutdownServices()
public Service getService(java.lang.String name) throws InstantiationException
name
- The name of the Service requested.
InstantiationException
- if the service is unknown or
can't be initialized.public org.apache.commons.configuration.Configuration getConfiguration(java.lang.String name)
name
- The name of the service.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |