public class GenericJsonConfigurationMerger<T> extends AbstractConfigurationMerger<T>
ConfigurationMerger that combines two Configuration objects
of type JSON.
The operation is provider-agnostic and depends on a specialized JsonProvider
which must be specified via constructor.
The resulting JSON document from the merge operation shall contain all exclusive objects from source documents and in case of In case of key collisions (i.e., the same key appears in both documents), the following rules will be applied:
Configuration will be selected;Configuration will be selected as fallback;Configuration will be selected as
fallback
Note: For advanced merge options, refer to JsonMergeOption.
ConfigurationMerger,
JsonProvider,
JsonMergeOption| Constructor and Description |
|---|
GenericJsonConfigurationMerger(net.obvj.jsonmerge.provider.JsonProvider<T> jsonProvider)
Creates a new JSON Configuration Merger for a specific provider.
|
public GenericJsonConfigurationMerger(net.obvj.jsonmerge.provider.JsonProvider<T> jsonProvider)
jsonProvider - the JsonProvider to use; not nullNullPointerException - if the specified JsonProvider is nullCopyright © 2022. All rights reserved.