T - the source and target Configuration typepublic abstract class AbstractConfigurationMerger<T> extends Object implements ConfigurationMerger<T>
ConfigurationMerger that contains common infrastructure logic for
the merging of two Configuration objects, delegating the actual combination to
a concrete implementation.| Constructor and Description |
|---|
AbstractConfigurationMerger() |
| Modifier and Type | Method and Description |
|---|---|
Configuration<T> |
merge(Configuration<T> config1,
Configuration<T> config2)
Combines two
Configuration objects into a new Configuration with the
following characteristics:
The resulting document will receive all the elements of the input
Configuration objects
In case of conflicting keys, the values at the highest-precedence
Configuration will be selected
The metadata of the highest-precedence Configuration (namespace and
precedence) will be applied to the new Configuration
|
public final Configuration<T> merge(Configuration<T> config1, Configuration<T> config2)
ConfigurationMergerConfiguration objects into a new Configuration with the
following characteristics:
Configuration objectsConfiguration will be selectedConfiguration (namespace and
precedence) will be applied to the new Configurationmerge in interface ConfigurationMerger<T>config1 - the first Configuration; not nullconfig2 - the second Configuration; not nullConfiguration resulting from the combination of config1
and config2Copyright © 2022. All rights reserved.