T - the target type which configuration data is to be retrievedpublic interface ConfigurationDataRetriever<T>
| Modifier and Type | Method and Description |
|---|---|
Optional<T> |
getBean()
Returns the target configuration object used by this data retriever, typically for
manual handling and/or troubleshooting purposes.
|
boolean |
getBoolean(String key)
Returns the
boolean value associated with the specified key. |
double |
getDouble(String key)
Returns the
double value associated with the specified key. |
int |
getInt(String key)
Returns the
int value associated with the specified key. |
long |
getLong(String key)
Returns the
long value associated with the specified key. |
boolean |
getMandatoryBoolean(String key)
Returns the
boolean value associated with the specified key. |
double |
getMandatoryDouble(String key)
Returns the
double value associated with the specified key. |
int |
getMandatoryInt(String key)
Returns the
int value associated with the specified key. |
long |
getMandatoryLong(String key)
Returns the
long value associated with the specified key. |
String |
getMandatoryString(String key)
Returns the
String value associated with the specified key. |
String |
getString(String key)
Returns the
String value associated with the specified key. |
Optional<T> getBean()
Optional, possibly containing the target configuration objectboolean getBoolean(String key)
boolean value associated with the specified key.key - the property key (some implementations may also accept a path expression,
e.g: JSONPath)boolean value associated with the specified keyint getInt(String key)
int value associated with the specified key.key - the property key (some implementations may also accept a path expression,
e.g: JSONPathint value associated with the specified keyNumberFormatException - if the value is not a parsable int.long getLong(String key)
long value associated with the specified key.key - the property key (some implementations may also accept a path expression,
e.g: JSONPathlong value associated with the specified keyNumberFormatException - if the value is not a parsable long.double getDouble(String key)
double value associated with the specified key.key - the property key (some implementations may also accept a path expression,
e.g: JSONPathdouble value associated with the specified keyNumberFormatException - if the value is not a parsable double.String getString(String key)
String value associated with the specified key.key - the property key (some implementations may also accept a path expression,
e.g: JSONPath)String value associated with the specified keyboolean getMandatoryBoolean(String key)
boolean value associated with the specified key.key - the property key (some implementations may also accept a path expression,
e.g: JSONPath)boolean value associated with the specified keyConfigurationException - if the specified key (or path) is not found.int getMandatoryInt(String key)
int value associated with the specified key.key - the property key (some implementations may also accept a path expression,
e.g: JSONPath)int value associated with the specified keyConfigurationException - if the specified key (or path) is not found.NumberFormatException - if the value is not a parsable int.long getMandatoryLong(String key)
long value associated with the specified key.key - the property key (some implementations may also accept a path expression,
e.g: JSONPath)long value associated with the specified keyConfigurationException - if the specified key (or path) is not found.NumberFormatException - if the value is not a parsable long.double getMandatoryDouble(String key)
double value associated with the specified key.key - the property key (some implementations may also accept a path expression,
e.g: JSONPath)double value associated with the specified keyConfigurationException - if the specified key (or path) is not found.NumberFormatException - if the value is not a parsable double.String getMandatoryString(String key)
String value associated with the specified key.key - the property key (some implementations may also accept a path expression,
e.g: JSONPath)String value associated with the specified keyConfigurationException - if the specified key (or path) is not found.Copyright © 2021. All rights reserved.