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 |
getBooleanProperty(String key)
Returns the
boolean value associated with the specified key. |
double |
getDoubleProperty(String key)
Returns the
double value associated with the specified key. |
int |
getIntProperty(String key)
Returns the
int value associated with the specified key. |
long |
getLongProperty(String key)
Returns the
long value associated with the specified key. |
String |
getStringProperty(String key)
Returns the
String value associated with the specified key. |
Optional<T> getBean()
Optional, possibly containing the target configuration objectboolean getBooleanProperty(String key)
boolean value associated with the specified key.key - the property keyboolean value associated with the specified keyint getIntProperty(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 getLongProperty(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 getDoubleProperty(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.