public interface PropertyValueCombinationPolicy
DEFAULT_OVERRIDING_POLICYis not matching the need of the current application, e.g. then entries containing multiple values should be combined to new values instead of overridden.
|Modifier and Type||Field and Description|
Use DEFAULT_OVERRIDING_POLICY instead. Will be removed in 1.0.
Default overriding collector, where each existing entry (
static final PropertyValueCombinationPolicy DEFAULT_OVERRIDING_POLICY
currentis overridden by a subsequent non-null entry evaluated by
PropertyValue collect(PropertyValue currentValue, String key, PropertySource propertySource)
org.apache.tamaya.Configuration.getXXX, but also when the full configuration property map is accessed by calling
currentValue- the current value, including metadata entries. If no such key is present the current value is null. The collector should either combine the existing value with value from
currentValueor replace the value in
valueRead, hereby returning the result to be used as new
key- The current key to be evaluated.
propertySource- The PropertySource that may return an value for the given key. The PropertySource given may be evaluated for additional meta-data, how the given values are to be combined. Note that the value returned by a PropertySource can be null. In that case
currentValueshould be returned in almost all cases.
Copyright © 2014–2017 Apache Software Foundation. All rights reserved.