java.lang.Object
io.helidon.config.OverrideConfigFilter
- All Implemented Interfaces:
ConfigFilter
A config filter that replaces values with a new ones of keys that matching with
Pattern.-
Constructor Summary
ConstructorsConstructorDescriptionOverrideConfigFilter(Supplier<List<Map.Entry<Predicate<Config.Key>, String>>> overrideValuesSupplier) Creates a filter with a given supplier of a map of key patterns to a override values. -
Method Summary
Modifier and TypeMethodDescriptionapply(Config.Key key, String stringValue) Filters an elementary config value before it is made available to the application via theConfigAPI.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.config.spi.ConfigFilter
init
-
Constructor Details
-
OverrideConfigFilter
public OverrideConfigFilter(Supplier<List<Map.Entry<Predicate<Config.Key>, String>>> overrideValuesSupplier) Creates a filter with a given supplier of a map of key patterns to a override values.- Parameters:
overrideValuesSupplier- a supplier of a map of key patterns to a override values
-
-
Method Details
-
apply
Description copied from interface:ConfigFilterFilters an elementary config value before it is made available to the application via theConfigAPI.- Specified by:
applyin interfaceConfigFilter- Parameters:
key- configurationkeyassociated with theConfignodestringValue- original value to be filtered, nevernull- Returns:
- original value or filtered (changed) value, never
null
-