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,
net.obvj.jsonmerge.JsonMergeOption... mergeOptions)
Combines two
Configuration objects into a new Configuration. |
public final Configuration<T> merge(Configuration<T> config1, Configuration<T> config2, net.obvj.jsonmerge.JsonMergeOption... mergeOptions)
ConfigurationMergerConfiguration objects into a new Configuration.
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 nullmergeOptions - an array of options on how to merge JSON objects (optional)Configuration resulting from the combination of config1
and config2NullPointerException - if a null Configuration is receivedCopyright © 2022. All rights reserved.