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. |
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 keyboolean value associated with the specified keyint getInt(String key)
int value associated with the specified key.key - the property keyint 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 keylong 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 keydouble value associated with the specified keyNumberFormatException - if the value is not a parsable double.Copyright © 2021. All rights reserved.