Class PropertiesUtil

java.lang.Object
io.quarkus.runtime.configuration.PropertiesUtil

public class PropertiesUtil extends Object
  • Method Details

    • isPropertyInRoot

      @Deprecated(forRemoval=true) public static boolean isPropertyInRoot(Set<String> roots, NameIterator propertyName)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • filterPropertiesInRoots

      public static Iterable<String> filterPropertiesInRoots(Iterable<String> properties, Set<String> roots)
    • 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