Class ConfigUtils
- java.lang.Object
-
- io.quarkus.rest.client.reactive.runtime.ConfigUtils
-
public class ConfigUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description ConfigUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
doGetConfigValue(String configPropertyName, boolean required, String propertyName)
Obtains the value of the {@param propertyName} name, meaning that the name must NOT start with '${' or end with '}'static String
getConfigValue(String configProperty, boolean required)
Obtains the value of the {@param configProperty} expression.static String
interpolate(String expression, boolean required)
Interpolates the given expression.
-
-
-
Field Detail
-
PREFIX
static final String PREFIX
- See Also:
- Constant Field Values
-
SUFFIX
static final String SUFFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
interpolate
public static String interpolate(String expression, boolean required)
Interpolates the given expression. The expression is expected to be in the form of ${config.property.name}.- Parameters:
expression
- the expression to interpolaterequired
- whether the expression is required to be present in the configuration- Returns:
- null if the resulting expression is empty, otherwise the interpolated expression
-
getConfigValue
public static String getConfigValue(String configProperty, boolean required)
Obtains the value of the {@param configProperty} expression. This expressions MUST be in the form of ${...}
-
-