Interface BuildStep

All Known Implementing Classes:
FinalStep
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 interface BuildStep
A single atomic unit of build work. A build step either succeeds or it does not, with no intermediate states possible. Build steps should be as fine-grained as possible.
Author:
David M. Lloyd
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final BuildStep
    The empty build step, which immediately succeeds.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Execute a build step.
    default String
    The identifier should be unique for a build chain.
  • Field Details

    • EMPTY

      static final BuildStep EMPTY
      The empty build step, which immediately succeeds.
  • Method Details

    • execute

      void execute(BuildContext context)
      Execute a build step.
      Parameters:
      context - the context of the build operation (not null)
    • getId

      default String getId()
      The identifier should be unique for a build chain.
      Returns:
      the identifier