Class AbstractConfigurationMerger<T>

    • Constructor Detail

      • AbstractConfigurationMerger

        public AbstractConfigurationMerger()
    • Method Detail

      • merge

        public final Configuration<T> merge​(Configuration<T> config1,
                                            Configuration<T> config2,
                                            net.obvj.jsonmerge.JsonMergeOption... mergeOptions)
        Description copied from interface: ConfigurationMerger
        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.

        Specified by:
        merge in interface ConfigurationMerger<T>
        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
        Throws:
        NullPointerException - if a null Configuration is received