Class OverrideConfigFilter
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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ConfigFilter
apply, initModifier and TypeMethodDescriptiondefault ConfigItemapply(Config.Key key, ConfigItem itemPolicy) Filters an elementary config value before it is made available to the application via theConfigAPI.default voidInitializes the filter using theConfiginstance which the filter will affect onceConfig.Builder.buildcompletes.
-
Constructor Details
-
OverrideConfigFilter
-
-
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
-