Class ConfigPropertyBuildItemCandidateUtil

java.lang.Object
io.quarkus.spring.boot.properties.deployment.ConfigPropertyBuildItemCandidateUtil

public class ConfigPropertyBuildItemCandidateUtil extends Object
  • Constructor Details

    • ConfigPropertyBuildItemCandidateUtil

      public ConfigPropertyBuildItemCandidateUtil()
  • Method Details

    • removePropertiesWithDefaultValue

      public static void removePropertiesWithDefaultValue(ClassLoader classLoader, String configClass, List<ConfigPropertyBuildItemCandidate> candidates)
      This method inspects the configClass bytecode to identify all fields that have a default value set in the class constructor. These fields are removed from the ConfigPropertyBuildItemCandidate list because we don't want to throw an exception if no config property value was provided for them. There is no bytecode modification performed during this process.