public interface PropertyFilter
Interface for filtering the current map 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 and Description |
---|---|
String |
filterProperty(String key,
String valueToBeFiltered)
Maps the current
valueToBeFiltered value to a new value. |
String filterProperty(String key, String valueToBeFiltered)
Maps the current valueToBeFiltered
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 map to the method's output.
Returning null
will remove the entry and Optional.empty() will be returned to the user.
key
- the key accessed, not null.valueToBeFiltered
- the value to be filtered, not null.null
if the value should be removed alltogether.Copyright © 2014–2015 Apache Software Foundation. All rights reserved.