Class PropertiesUtil


  • public class PropertiesUtil
    extends Object
    • Method Detail

      • isPropertyQuarkusCompoundName

        public static boolean isPropertyQuarkusCompoundName​(NameIterator propertyName)
      • filterUnknown

        public static void filterUnknown​(Set<String> unknownProperties,
                                         io.smallrye.config.KeyMap<Boolean> filterPatterns)
        Removes false positives of configuration properties marked as unknown. To populate the old @ConfigRoot, all properties are iterated and matched against known roots. With @ConfigMapping the process is different, so properties that are known to @ConfigMapping are not known to the @ConfigRoot, so they will be marked as being unknown. It is a bit easier to just double-check on the unknown properties and remove these false positives by matching them against the known properties of @ConfigMapping.
        Parameters:
        unknownProperties - the collected unknown properties from the old @ConfigRoot mapping
        filterPatterns - the mapped patterns from the discovered @ConfigMapping