T - the target type which configuration data is to be retrievedpublic interface ConfigurationDataRetriever<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. |
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. |
T getBean()
null if the
Configuration is marked as optional)Boolean getBoolean(String key)
Boolean object associated with the specified key.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 foundInteger getInteger(String key)
Integer object associated with the specified key.key - the object key (some implementations may also accept a path expression, e.g:
JSONPathInteger object associated with the specified key;
null if not foundNumberFormatException - if the value is not a parsable int.Long getLong(String key)
Long object associated with the specified key.key - the object key (some implementations may also accept a path expression, e.g:
JSONPathLong object associated with the specified key; null
if not foundNumberFormatException - if the value is not a parsable long.Double getDouble(String key)
Double object associated with the specified key.key - the object key (some implementations may also accept a path expression, e.g:
JSONPathDouble object associated with the specified key;
null if not foundNumberFormatException - if the value is not a parsable double.String getString(String key)
String 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 foundBoolean getMandatoryBoolean(String key)
Boolean 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)Boolean value associated with the specified key; never
nullConfigurationException - if the specified key (or path) is not found.Integer getMandatoryInteger(String key)
Integer 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)Integer object associated with the specified key; never
nullConfigurationException - if the specified key (or path) is not found.NumberFormatException - if the value is not a parsable int.Long getMandatoryLong(String key)
Long 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)Long object associated with the specified key; never
nullConfigurationException - if the specified key (or path) is not found.NumberFormatException - if the value is not a parsable long.Double getMandatoryDouble(String key)
Double 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)Double object associated with the specified key; never
nullConfigurationException - if the specified key (or path) is not found.NumberFormatException - if the value is not a parsable double.String getMandatoryString(String key)
String 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
nullConfigurationException - if the specified key (or path) is not found.Copyright © 2022. All rights reserved.