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
ConstructorDescriptionOverrideConfigFilter
(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 theConfig
API.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.helidon.config.spi.ConfigFilter
apply, 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:ConfigFilter
Filters an elementary config value before it is made available to the application via theConfig
API.- Specified by:
apply
in interfaceConfigFilter
- Parameters:
key
- configurationkey
associated with theConfig
nodestringValue
- original value to be filtered, nevernull
- Returns:
- original value or filtered (changed) value, never
null
-