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 |
|---|---|
ConfigurationMerger<Properties> |
configurationMerger()
Creates the applicable
ConfigurationMerger object for the type associated with
this ConfigurationHelper. |
Object |
get(String key)
Returns the object associated with the specified
key. |
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, getMandatoryLongequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewInstancepublic PropertiesConfigurationHelper(Properties properties)
Properties object.properties - the Properties to be maintained by this helperpublic Object get(String key)
ConfigurationDataRetrieverkey.
Notes:
key - the object key (some implementations may also accept a path expression, e.g:
JSONPath)key. Depending on the
actual implementation, the result may be either null or an empty array
if the specified key is not foundpublic 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
nullpublic ConfigurationMerger<Properties> configurationMerger()
ConfigurationHelperConfigurationMerger object for the type associated with
this ConfigurationHelper.ConfigurationMerger instanceCopyright © 2023. All rights reserved.