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 |
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. |
getNullValueProvider, setNullValueProviderpublic Optional<T> getBean()
ConfigurationDataRetrieverOptional.empty(), alwayspublic boolean getBoolean(String key)
ConfigurationDataRetrieverboolean value associated with the specified key.key - the property key (some implementations may also accept a path expression,
e.g: JSONPath)boolean, alwayspublic int getInt(String key)
ConfigurationDataRetrieverint value associated with the specified key.key - the property key (some implementations may also accept a path expression,
e.g: JSONPathint, alwayspublic long getLong(String key)
ConfigurationDataRetrieverlong value associated with the specified key.key - the property key (some implementations may also accept a path expression,
e.g: JSONPathlong, alwayspublic double getDouble(String key)
ConfigurationDataRetrieverdouble value associated with the specified key.key - the property key (some implementations may also accept a path expression,
e.g: JSONPathdouble, alwayspublic String getString(String key)
ConfigurationDataRetrieverString value associated with the specified key.key - the property key (some implementations may also accept a path expression,
e.g: JSONPath)String, alwayspublic boolean getMandatoryBoolean(String key)
ConfigurationDataRetrieverboolean 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 keypublic int getMandatoryInt(String key)
ConfigurationDataRetrieverint 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 keypublic long getMandatoryLong(String key)
ConfigurationDataRetrieverlong 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 keypublic double getMandatoryDouble(String key)
ConfigurationDataRetrieverdouble 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 keypublic String getMandatoryString(String key)
ConfigurationDataRetrieverString 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 keyCopyright © 2021. All rights reserved.