public class ConfigPropertyBuildItemCandidateUtil extends Object
| Constructor and Description |
|---|
ConfigPropertyBuildItemCandidateUtil() |
| Modifier and Type | Method and Description |
|---|---|
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. |
public ConfigPropertyBuildItemCandidateUtil()
public static void removePropertiesWithDefaultValue(ClassLoader classLoader, String configClass, List<ConfigPropertyBuildItemCandidate> candidates)
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.Copyright © 2021 JBoss by Red Hat. All rights reserved.