public interface PropertySource
| Modifier and Type | Interface and Description |
|---|---|
static interface |
PropertySource.Editor
Provides a means to update the underlying store in a thread-safe manner.
|
| Modifier and Type | Method and Description |
|---|---|
PropertySource.Editor |
getEditor()
Returns a class suitable for editing the properties in the underlying representation in a
thread-safe manner.
|
Set<String> |
getKeysStartingWith(String prefix)
Returns the keys from the source that start with the specified prefix.
|
String |
getValue(String key,
String defaultValue)
Returns the value of the specified key.
|
void |
reloadIfUpdated()
Reloads the properties from the source if they have been changed since the last load.
|
void reloadIfUpdated()
Set<String> getKeysStartingWith(String prefix)
prefix - the prefix to findString getValue(String key, String defaultValue)
key - the keydefaultValue - the default value if the key is not foundPropertySource.Editor getEditor()
UnsupportedOperationException - if this property source does not support updatesCopyright © 2018. All Rights Reserved.