Interface CascadeAssembler.CascadeResolver

All Known Implementing Classes:
UrlCascadeResolver
Enclosing class:
CascadeAssembler
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface CascadeAssembler.CascadeResolver
Resolves the ProjectCascade for a cascade neighbour.

The caller decides how a neighbour is reached — a sibling directory on disk, or a git checkout from the edge's url — and reads its src/main/cascade/release-cascade.yaml.

  • Method Summary

    Modifier and Type
    Method
    Description
    Resolves and parses one neighbour's manifest.
  • Method Details

    • resolve

      ProjectCascade resolve(CascadeEdge edge)
      Resolves and parses one neighbour's manifest.
      Parameters:
      edge - the edge naming the neighbour (carries its coordinates, repo, and url)
      Returns:
      the neighbour's parsed manifest
      Throws:
      RuntimeException - if the neighbour's manifest cannot be located or parsed