Class ConfigUtils

java.lang.Object
io.quarkus.rest.client.reactive.runtime.ConfigUtils

public class ConfigUtils extends Object
  • Field Details

  • Constructor Details

    • ConfigUtils

      public ConfigUtils()
  • Method Details

    • 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 interpolate
      required - 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 expression. This expressions MUST be in the form of ${...}
    • doGetConfigValue

      public static String doGetConfigValue(String configPropertyName, boolean required, String propertyName)
      Obtains the value of the name, meaning that the name must NOT start with '${' or end with '}'