T - the configuration bean typepublic class BeanConfigurationHelper<T> extends BasicConfigurationHelper<T>
| Constructor and Description |
|---|
BeanConfigurationHelper(T source)
Builds a new Configuration Helper instance with a specific source.
|
| Modifier and Type | Method and Description |
|---|---|
ConfigurationMerger<T> |
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 BeanConfigurationHelper(T source)
source - the source bean, mainly for exception/reporting purposespublic Object get(String key)
ConfigurationDataRetrieverkey.
Notes:
key - not used since this method implementation is a "no-op"key. Depending on the
actual implementation, the result may be either null or an empty array
if the specified key is not foundConfigurationException - always, since the data for this type of helper should be
retrieved by the user-defined beanpublic String getString(String key)
ConfigurationDataRetrieverString object associated with the specified key.key - not used since this method implementation is a "no-op"String object associated with the specified key;
null if not foundConfigurationException - always, since the data for this type of helper should be
retrieved by the user-defined beanpublic String getMandatoryString(String key)
ConfigurationDataRetrieverString object associated with the specified key, throwing
an exception if not found.key - not used since this method implementation is a "no-op"String object associated with the specified key; never
nullConfigurationException - always, since the data for this type of helper should be
retrieved by the user-defined beanpublic ConfigurationMerger<T> configurationMerger()
ConfigurationHelperConfigurationMerger object for the type associated with
this ConfigurationHelper.ConfigurationMerger instanceCopyright © 2023. All rights reserved.