|
||||||||||
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(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. |
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |