Interface MergeStrategy

All Known Implementing Classes:
ErrorOnConflictMergeStrategy, OverrideMergeStrategy

public interface MergeStrategy
YAML merge strategy between multiple files
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Name of the merge strategy which must be unique.
    void
    merge(org.yaml.snakeyaml.nodes.Node firstNode, org.yaml.snakeyaml.nodes.Node secondNode, String source)
    Merge two nodes which come from two YAML files
  • Field Details

  • Method Details

    • merge

      void merge(org.yaml.snakeyaml.nodes.Node firstNode, org.yaml.snakeyaml.nodes.Node secondNode, String source) throws ConfiguratorException
      Merge two nodes which come from two YAML files
      Parameters:
      firstNode - the first node of a node list
      secondNode - the second node of a node list
      source - is the source of node
      Throws:
      ConfiguratorException - if the merge fails
    • getName

      String getName()
      Name of the merge strategy which must be unique.
      Returns:
      name of the merge strategy