Package io.quarkus.runtime.configuration
Class PropertiesUtil
- java.lang.Object
-
- io.quarkus.runtime.configuration.PropertiesUtil
-
public class PropertiesUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Iterable<String>
filterPropertiesInRoots(Iterable<String> properties, Set<String> roots)
static void
filterUnknown(Set<String> unknownProperties, io.smallrye.config.KeyMap<Boolean> filterPatterns)
Removes false positives of configuration properties marked as unknown.static boolean
isPropertyInRoot(Set<String> roots, NameIterator propertyName)
Deprecated, for removal: This API element is subject to removal in a future version.UsefilterPropertiesInRoots(Iterable, Set)
instead.static boolean
isPropertyQuarkusCompoundName(NameIterator propertyName)
-
-
-
Method Detail
-
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.UsefilterPropertiesInRoots(Iterable, Set)
instead.
-
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 mappingfilterPatterns
- the mapped patterns from the discovered @ConfigMapping
-
-