Class OverrideMergeStrategy

    • Constructor Detail

      • OverrideMergeStrategy

        public OverrideMergeStrategy()
    • Method Detail

      • merge

        public void merge​(org.yaml.snakeyaml.nodes.Node root,
                          org.yaml.snakeyaml.nodes.Node node,
                          String source)
                   throws ConfiguratorException
        Description copied from interface: MergeStrategy
        Merge two nodes which come from two YAML files
        Specified by:
        merge in interface MergeStrategy
        Parameters:
        root - the first node of a node list
        node - the second node of a node list
        source - is the source of node
        Throws:
        ConfiguratorException - if the merge fails
      • getName

        public String getName()
        Description copied from interface: MergeStrategy
        Name of the merge strategy which must be unique.
        Specified by:
        getName in interface MergeStrategy
        Returns:
        name of the merge strategy