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 StringgetConfigValue(String configProperty, boolean required)static Stringinterpolate(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
-
-