|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.ServiceConfiguration
public class ServiceConfiguration
Configuration data for a service.
A map is employed to store a service's various configurations.
Field Summary |
---|
Fields inherited from interface com.sas.services.ServiceConfigurationInterface |
---|
CONFIGURATION_METADATA_SOURCE, CONFIGURATION_SERVICE_DISCOVERY |
Constructor Summary | |
---|---|
ServiceConfiguration()
Constructs a default instance of a service configuration which is basically a map of 0..* ancillary configurations. |
|
ServiceConfiguration(java.lang.Object initializationObject)
Constructs an instance with the specified initialization object. |
Method Summary | |
---|---|
void |
addServiceConfiguration(java.lang.Object key,
ServiceConfigurationInterface serviceConfiguration)
Adds a service configuration keyed by the specified value. |
Environment |
getEnvironment()
Gets the environment object. |
java.lang.Object |
getInitializationObject()
Gets an object that is to be used to initialize or reconfigure a service. |
ServiceConfigurationInterface |
getServiceConfiguration(java.lang.Object key)
Gets the ancillary service configuration associated with the specified key. |
java.util.Iterator |
getServiceConfigurations()
Gets an iterator of all of the ancillary service configurations. |
void |
removeServiceConfiguration(java.lang.Object key)
Removes the ancillary service configuration associated with the specified key. |
void |
setEnvironment(Environment environment)
Sets the environment object. |
void |
setInitializationObject(java.lang.Object initializationObject)
Sets an object that is to be used to initialize or reconfigure a service. |
Constructor Detail |
---|
public ServiceConfiguration()
public ServiceConfiguration(java.lang.Object initializationObject)
initializationObject
- An object to be used to initialize.Method Detail |
---|
public final void addServiceConfiguration(java.lang.Object key, ServiceConfigurationInterface serviceConfiguration)
addServiceConfiguration
in interface ServiceConfigurationInterface
key
- Key to be associated with this configuration.serviceConfiguration
- A configuration to be associated with
the service using the specified key.
java.lang.IllegalArgumentException
- if a parameter is specified which
is null
or not serializable.public final void removeServiceConfiguration(java.lang.Object key)
removeServiceConfiguration
in interface ServiceConfigurationInterface
key
- Ancillary service configuration lookup key.public final ServiceConfigurationInterface getServiceConfiguration(java.lang.Object key)
getServiceConfiguration
in interface ServiceConfigurationInterface
key
- Ancillary service configuration lookup key.
null
if a configuration
is not defined for the key.public final java.util.Iterator getServiceConfigurations()
getServiceConfigurations
in interface ServiceConfigurationInterface
public final java.lang.Object getInitializationObject()
getInitializationObject
in interface ServiceConfigurationInterface
public final void setInitializationObject(java.lang.Object initializationObject)
setInitializationObject
in interface ServiceConfigurationInterface
initializationObject
- Object containing data to initialize or
reconfigure a service.public final Environment getEnvironment()
getEnvironment
in interface ServiceConfigurationInterface
null
.public final void setEnvironment(Environment environment)
environment
- the environment object.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |