org.apache.tamaya.collections.internal

## Class AdaptiveCombinationPolicy

- java.lang.Object
- - org.apache.tamaya.collections.internal.AdaptiveCombinationPolicy

- All Implemented Interfaces:
    org.apache.tamaya.spi.PropertyValueCombinationPolicy

      @Priority(value=100)
      public class AdaptiveCombinationPolicy
      extends Object
      implements org.apache.tamaya.spi.PropertyValueCombinationPolicy

  PropertyValueCombinationPolicy that allows to configure a PropertyValueCombinationPolicy for each key individually, by adding a configured entry of the form `_key.combination-policy=collect|override|fqPolicyClassName`.

- - ### Field Summary

    - ### Fields inherited from interface org.apache.tamaya.spi.PropertyValueCombinationPolicy

      `DEFAULT_OVERRIDING_COLLECTOR`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AdaptiveCombinationPolicy()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Map<String,String>` | `collect(Map<String,String> currentValue, String key, org.apache.tamaya.spi.PropertySource propertySource)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AdaptiveCombinationPolicy

          public AdaptiveCombinationPolicy()

  - ### Method Detail

    - #### collect

          public Map<String,String> collect(Map<String,String> currentValue,
                                   String key,
                                   org.apache.tamaya.spi.PropertySource propertySource)

      Specified by:
        `collect` in interface `org.apache.tamaya.spi.PropertyValueCombinationPolicy`

Copyright © 2014–2016 Apache Software Foundation. All rights reserved.