public final class SystemPropertiesConfigSource extends AbstractConfigSource
System.getProperties()
as a source.
Implementation note: set(String, String)
does not write to system properties, but
will write to a new map. This means that setting values to this source has no effect on system
properties or other instances of this class.
Constructor and Description |
---|
SystemPropertiesConfigSource() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
get(java.lang.String key)
Get a String associated with the given configuration key.
|
void |
initialize(java.lang.String asgName,
java.lang.String region)
Must be called before any other method.
|
void |
set(java.lang.String key,
java.lang.String value)
Set the value for the given key.
|
int |
size()
A non-negative integer indicating a count of elements.
|
public void initialize(java.lang.String asgName, java.lang.String region)
IConfigSource
initialize
in interface IConfigSource
initialize
in class AbstractConfigSource
public int size()
IConfigSource
public java.lang.String get(java.lang.String key)
IConfigSource
key
- to look up value.public void set(java.lang.String key, java.lang.String value)
IConfigSource
key
- to set value for.value
- to set.