T - the source type which configuration data is to be retrievedpublic class NullConfigurationHelper<T> extends AbstractBasicConfigurationHelper<T>
Configuration object is not available.| Constructor and Description |
|---|
NullConfigurationHelper() |
| 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. |
setNullValueProviderpublic Optional<T> getBean()
ConfigurationDataRetrieverOptional.empty(), alwayspublic boolean getBooleanProperty(String key)
ConfigurationDataRetrieverboolean value associated with the specified key.key - the property keyboolean, alwayspublic int getIntProperty(String key)
ConfigurationDataRetrieverint value associated with the specified key.key - the property keyint, alwayspublic long getLongProperty(String key)
ConfigurationDataRetrieverlong value associated with the specified key.key - the property keylong, alwayspublic double getDoubleProperty(String key)
ConfigurationDataRetrieverdouble value associated with the specified key.key - the property keydouble, alwayspublic String getStringProperty(String key)
ConfigurationDataRetrieverString value associated with the specified key.key - the property keyString, alwaysCopyright © 2021. All rights reserved.