public final class SystemPropertiesConfiguration extends AbstractConfiguration implements Ranked, Serializable
AbstractConfiguration that houses System properties and hence, by definition,
minimally specific
ConfigurationValues representing them.| Constructor and Description |
|---|
SystemPropertiesConfiguration()
Creates a new
SystemPropertiesConfiguration. |
| 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 System property identified by
the supplied name, or null. |
int |
hashCode() |
protected boolean |
isAuthoritative(String name)
Returns
true if the supplied name is not null and is one of the System
properties guaranteed by the Java Language Specification to exist
on every available Java platform. |
String |
toString() |
getConfigurations, setConfigurationspublic SystemPropertiesConfiguration()
SystemPropertiesConfiguration.public final ConfigurationValue getValue(Map<String,String> coordinates, String name)
ConfigurationValue representing the System property identified by
the supplied name, or null.
The ConfigurationValue returned will be marked as
authoritative
if it is one of the System
properties guaranteed by the Java Language Specification to exist
on every available Java platform.
getValue in interface Configurationcoordinates - the configuration coordinates in effect for
the current request; may be nullname - the name of the configuration property for which to
return a ConfigurationValue; may be nullConfigurationValue, or nullConfigurationValuepublic final Set<String> getNames()
Set of the names of all ConfigurationValues that might be returned by this Configuration.
This method never returns null.
Overrides of this method must not return null.
This implementation returns an immutable representation of the
equivalent of System.getProperties().stringPropertyNames().
getNames in interface Configurationnull Set of namesprotected boolean isAuthoritative(String name)
true if the supplied name is not null and is one of the System
properties guaranteed by the Java Language Specification to exist
on every available Java platform.name - the name of a System property; may be null in which case
false will be returnedtrue if any value that this SystemPropertiesConfiguration produces for the supplied name is to be regarded as the authoritative value; false
otherwiseCopyright © 2017–2019, microBean. All rights reserved.