|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServiceBroker
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. |
java.lang.Object |
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 |
|---|
boolean isRegistered(java.lang.String serviceName)
TurbineResources.properties.
serviceName - The name of the service whose existance to check.
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.void shutdownService(java.lang.String name)
name - The name of the Service to be uninitialized.void shutdownServices()
java.lang.Object 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.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 | |||||||||