public class PropertiesConfigurationHelper extends BasicConfigurationHelper<Properties>
Properties
object.| Constructor and Description |
|---|
PropertiesConfigurationHelper(Properties properties)
Builds a new dedicated instance from a specific
Properties object. |
| Modifier and Type | Method and Description |
|---|---|
String |
getMandatoryString(String key)
Returns the
String object associated with the specified key, throwing
an exception if not found. |
String |
getString(String key)
Returns the
String object associated with the specified key. |
getBean, getBoolean, getDouble, getInteger, getLong, getMandatoryBoolean, getMandatoryDouble, getMandatoryInteger, getMandatoryLongpublic PropertiesConfigurationHelper(Properties properties)
Properties object.properties - the Properties to be maintained by this helperpublic String getString(String key)
ConfigurationDataRetrieverString object associated with the specified key.key - the object key (some implementations may also accept a path expression, e.g:
JSONPath)String object associated with the specified key;
null if not foundpublic String getMandatoryString(String key)
ConfigurationDataRetrieverString object associated with the specified key, throwing
an exception if not found.key - the object key (some implementations may also accept a path expression, e.g:
JSONPath)String object associated with the specified key; never
nullCopyright © 2021. All rights reserved.