T - the source type which configuration data is to be retrievedpublic abstract class BasicConfigurationHelper<T> extends Object implements ConfigurationHelper<T>
| Modifier and Type | Method and Description |
|---|---|
T |
getBean()
Returns the configuration bean used by this data retriever, typically for manual
handling and/or troubleshooting purposes.
|
Boolean |
getBoolean(String key)
Returns the
Boolean object associated with the specified key. |
Double |
getDouble(String key)
Returns the
Double object associated with the specified key. |
Integer |
getInteger(String key)
Returns the
Integer object associated with the specified key. |
Long |
getLong(String key)
Returns the
Long object associated with the specified key. |
Boolean |
getMandatoryBoolean(String key)
Returns the
Boolean object associated with the specified key, throwing
an exception if not found. |
Double |
getMandatoryDouble(String key)
Returns the
Double object associated with the specified key, throwing
an exception if not found. |
Integer |
getMandatoryInteger(String key)
Returns the
Integer object associated with the specified key, throwing
an exception if not found. |
Long |
getMandatoryLong(String key)
Returns the
Long object associated with the specified key, throwing an
exception if not found. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMandatoryString, getStringpublic T getBean()
ConfigurationDataRetrievergetBean in interface ConfigurationDataRetriever<T>null if the
Configuration is marked as optional)public Boolean getBoolean(String key)
ConfigurationDataRetrieverBoolean object associated with the specified key.getBoolean in interface ConfigurationDataRetriever<T>key - the object key (some implementations may also accept a path expression, e.g:
JSONPath)Boolean object associated with the specified key;
null if not foundpublic Boolean getMandatoryBoolean(String key)
ConfigurationDataRetrieverBoolean object associated with the specified key, throwing
an exception if not found.getMandatoryBoolean in interface ConfigurationDataRetriever<T>key - the object key (some implementations may also accept a path expression, e.g:
JSONPath)Boolean value associated with the specified key; never
nullpublic Integer getInteger(String key)
ConfigurationDataRetrieverInteger object associated with the specified key.getInteger in interface ConfigurationDataRetriever<T>key - the object key (some implementations may also accept a path expression, e.g:
JSONPathInteger object associated with the specified key;
null if not foundpublic Integer getMandatoryInteger(String key)
ConfigurationDataRetrieverInteger object associated with the specified key, throwing
an exception if not found.getMandatoryInteger in interface ConfigurationDataRetriever<T>key - the object key (some implementations may also accept a path expression, e.g:
JSONPath)Integer object associated with the specified key; never
nullpublic Long getLong(String key)
ConfigurationDataRetrieverLong object associated with the specified key.getLong in interface ConfigurationDataRetriever<T>key - the object key (some implementations may also accept a path expression, e.g:
JSONPathLong object associated with the specified key; null
if not foundpublic Long getMandatoryLong(String key)
ConfigurationDataRetrieverLong object associated with the specified key, throwing an
exception if not found.getMandatoryLong in interface ConfigurationDataRetriever<T>key - the object key (some implementations may also accept a path expression, e.g:
JSONPath)Long object associated with the specified key; never
nullpublic Double getDouble(String key)
ConfigurationDataRetrieverDouble object associated with the specified key.getDouble in interface ConfigurationDataRetriever<T>key - the object key (some implementations may also accept a path expression, e.g:
JSONPathDouble object associated with the specified key;
null if not foundpublic Double getMandatoryDouble(String key)
ConfigurationDataRetrieverDouble object associated with the specified key, throwing
an exception if not found.getMandatoryDouble in interface ConfigurationDataRetriever<T>key - the object key (some implementations may also accept a path expression, e.g:
JSONPath)Double object associated with the specified key; never
nullCopyright © 2021. All rights reserved.