Interface ProtoBuilder.Lifecycle

Enclosing class:
ProtoBuilder<C,B extends ProtoBuilder<C,B>>

public static interface ProtoBuilder.Lifecycle
Abstracts a lifecycle controller for a ProtoBuilder implementation.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Defines a simple lifecycle controller for implementations that don't actually need one.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Will be called on any setup step.
    void
    Will be called on any final build step.
  • Field Details

    • INFINITE

      static final ProtoBuilder.Lifecycle INFINITE
      Defines a simple lifecycle controller for implementations that don't actually need one.
  • Method Details

    • check

      void check()
      Will be called on any setup step.
      Throws:
      IllegalStateException - if the lifecycle does not allow further setup on the associated core instance.
    • increment

      void increment()
      Will be called on any final build step.