|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
The base service configuration interface optionally specifying an object containing data necessary to initialize or reconfigure a service and other service configurations. Ancillary configurations might include a discovery configuration, a deployment configuration, etc.. These "other" service configurations provide a mechanism to separate unrelated configuration data while still providing the service with a mechanism to look it up if necessary.
| Field Summary | |
static Object |
CONFIGURATION_METADATA_SOURCE
The lookup key associated with the metadata source configuration. |
static Object |
CONFIGURATION_SERVICE_DISCOVERY
The lookup key associated with a service's discovery configuration. |
| Method Summary | |
void |
addServiceConfiguration(Object key,
ServiceConfigurationInterface serviceConfiguration)
Adds a service configuration which can be later obtained using the specified lookup key. |
Object |
getInitializationObject()
Gets an object that is to be used to initialize or reconfigure a service. |
ServiceConfigurationInterface |
getServiceConfiguration(Object key)
Gets the service configuration asscociated with the specified lookup key or null if a configuration is not available. |
Iterator |
getServiceConfigurations()
Gets an iterator of ServiceConfigurationInterface elements. |
void |
removeServiceConfiguration(Object key)
Removes the service configuration associated with the specified key. |
void |
setInitializationObject(Object initializationObject)
Sets an object that is to be used to initialize or reconfigure a service. |
| Field Detail |
public static final Object CONFIGURATION_SERVICE_DISCOVERY
public static final Object CONFIGURATION_METADATA_SOURCE
| Method Detail |
public void addServiceConfiguration(Object key,
ServiceConfigurationInterface serviceConfiguration)
key - Lookup key.serviceConfiguration - Service configuration.public void removeServiceConfiguration(Object key)
key - Key associated with the service configuration to be removed.public ServiceConfigurationInterface getServiceConfiguration(Object key)
null if a configuration is not available.key - Lookukp key used to obtain a configuration.null if one isn't available.public Iterator getServiceConfigurations()
ServiceConfigurationInterface elements.public Object getInitializationObject()
null if an initialization
object is not associated with this configuration.public void setInitializationObject(Object initializationObject)
initializationObject - Object containing data to initialize or
reconfigure this service.
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||