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 Detail

      • EMPTY

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

      • 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