@FunctionalInterface public interface PropertyFilter
Interface for filtering the current mapProperties of properties during the evaluation of the chain of PropertySources.
Filters can be registered using the ServiceContext. The ordinal
hereby is defined by the corresponding @Priority annotation.
Filters
| Modifier and Type | Method | Description |
|---|---|---|
PropertyValue |
filterProperty(PropertyValue value,
FilterContext context) |
Maps the current
value to a new value. |
PropertyValue filterProperty(PropertyValue value, FilterContext context)
Maps the current value to a new value. The resulting value will be used as the result
passed to the user.
If a filter is currently not available, it should just pass the input mapProperties to the method's output.
Returning null will remove the entry.
value - the value to be filtered, which also can be null if removed by another filter.context - the filter context, not null.null if the value should be removed alltogether.PropertyValue,
FilterContextCopyright © 2014–2019 Apache Software Foundation. All rights reserved.