public final class EnvironmentVariablesConfiguration extends AbstractConfiguration implements Ranked, Serializable
AbstractConfiguration
providing access to environment variabes.getValue(Map, String)
,
Serialized FormConstructor and Description |
---|
EnvironmentVariablesConfiguration()
Creates a new
EnvironmentVariablesConfiguration . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Set<String> |
getNames()
|
int |
getRank() |
ConfigurationValue |
getValue(Map<String,String> coordinates,
String name)
Returns a
ConfigurationValue representing the environment variable identified by the
supplied name , or null . |
int |
hashCode() |
String |
toString() |
getConfigurations, setConfigurations
public EnvironmentVariablesConfiguration()
EnvironmentVariablesConfiguration
.public final ConfigurationValue getValue(Map<String,String> coordinates, String name)
ConfigurationValue
representing the environment variable identified by the
supplied name
, or null
.getValue
in interface Configuration
coordinates
- the configuration coordinates in effect for
the current request; may be null
name
- the name of the configuration property for which to
return a ConfigurationValue
; may be null
ConfigurationValue
, or null
ConfigurationValue
public final Set<String> getNames()
Set
of the names of all ConfigurationValue
s that might be returned by this Configuration
.
This implementation does not return null
.
This implementation returns the equivalent of System.getenv().keySet()
.
getNames
in interface Configuration
null
Set
of namesCopyright © 2017–2019, microBean. All rights reserved.