public class PropertiesConfigSource extends AbstractConfigSource
Constructor and Description |
---|
PropertiesConfigSource() |
PropertiesConfigSource(java.util.Properties properties) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.String prop)
Check if the given key can be found in the config.
|
java.lang.String |
get(java.lang.String prop)
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 PropertiesConfigSource()
public PropertiesConfigSource(java.util.Properties properties)
public void initialize(java.lang.String asgName, java.lang.String region)
IConfigSource
initialize
in interface IConfigSource
initialize
in class AbstractConfigSource
public java.lang.String get(java.lang.String prop)
IConfigSource
prop
- to look up value.public void set(java.lang.String key, java.lang.String value)
IConfigSource
key
- to set value for.value
- to set.public int size()
IConfigSource
public boolean contains(java.lang.String prop)
IConfigSource
contains
in interface IConfigSource
contains
in class AbstractConfigSource
prop
- to look up value.