Class ConfigPropertyBuildItemCandidateUtil


  • public class ConfigPropertyBuildItemCandidateUtil
    extends Object
    • Constructor Detail

      • ConfigPropertyBuildItemCandidateUtil

        public ConfigPropertyBuildItemCandidateUtil()
    • Method Detail

      • 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.