Interface TemplateSource

All Known Implementing Classes:
DirectoryTemplateSource, MapTemplateSource

public interface TemplateSource
Source of scaffold template bytes, addressed by the string in ManifestEntry.source().

In production this is backed by the ike-build-standards scaffold zip unpacked at plugin validate time. Tests use an in-memory map implementation.

  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    read(String source)
    Read template bytes for a given source path.
  • Method Details

    • read

      byte[] read(String source)
      Read template bytes for a given source path.
      Parameters:
      source - the path declared in the manifest's source field
      Returns:
      the template bytes
      Throws:
      ScaffoldException - if source does not exist in this template source