public interface PropertyValueCombinationPolicy
DEFAULT_OVERRIDING_COLLECTORis 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|
Default overriding collector, where each existing entry (
static final PropertyValueCombinationPolicy DEFAULT_OVERRIDING_COLLECTOR
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.