public interface Configuration
ConfigurationValues in configuration space.
Configuration instances are typically controlled in the
service of a governing Configurations object.
getValue(Map, String),
ConfigurationValue,
Configurations.loadConfigurations()| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getNames()
|
ConfigurationValue |
getValue(Map<String,String> configurationCoordinates,
String name)
Returns a
ConfigurationValue suitable for the supplied
configurationCoordinates and name, or null if there is no suitable value. |
void |
setConfigurations(Configurations configurations)
Installs a
Configurations object into this Configuration implementation. |
void setConfigurations(Configurations configurations)
Configurations object into this Configuration implementation.configurations - the Configurations to install; must
not be nullNullPointerException - if configurations is
nullConfigurationValue getValue(Map<String,String> configurationCoordinates, String name)
ConfigurationValue suitable for the supplied
configurationCoordinates and name, or null if there is no suitable value.
Implementations of this method may return null.
The ConfigurationValue that is returned must
have a name that is
equal to the supplied name.
The ConfigurationValue that is returned must be
created with this Configuration as the first parameter value supplied to its
constructor.
The ConfigurationValue that is returned must be
created with a set of configuration
coordinates that is a subset of the supplied configurationCoordinates.
configurationCoordinates - the configuration coordinates for
which a value for the relevant configuration property, identified
by the supplied name, should be returned; may be nullname - the name of the configuration property for which a
ConfigurationValue will be returned; must not be nullConfigurationValue suitable for the supplied
configurationCoordinates and name, or nullNullPointerException - if name is nullConfigurationValueSet<String> getNames()
Set of the names of all ConfigurationValues that might be returned by this Configuration.
Implementations of this method must not return null.
Just because a name appears in the returned Set does
not mean that a ConfigurationValue will be
returned for it in a location in configuration space identified
by any arbitrary set of configuration coordinates.
null Set of namesCopyright © 2017–2019, microBean. All rights reserved.