Interface ConfigurationMerger<T>

    • Method Detail

      • merge

        Configuration<T> merge​(Configuration<T> config1,
                               Configuration<T> config2,
                               net.obvj.jsonmerge.JsonMergeOption... mergeOptions)
        Combines two Configuration objects into a new Configuration.

        The resulting object will receive all the elements of both input 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.

        Parameters:
        config1 - the first Configuration; not null
        config2 - the second Configuration; not null
        mergeOptions - an array of options on how to merge JSON objects (optional)
        Returns:
        a new Configuration resulting from the combination of config1 and config2