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 |
---|---|
String |
getApplicationRoot()
Get the application root as set by
the parent application.
|
org.apache.commons.configuration2.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.configuration2.Configuration getConfiguration(String name)
name
- The name of the service.String getApplicationRoot()
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.