Enum Class ExtensionPhase

java.lang.Object
java.lang.Enum<ExtensionPhase>
dev.relism.flash.extension.ExtensionPhase
All Implemented Interfaces:
Serializable, Comparable<ExtensionPhase>, Constable

public enum ExtensionPhase extends Enum<ExtensionPhase>
Semantic execution phases for FlashExtension.priority().

Phase determines the order in which annotation-processor middlewares are injected into the chain. Lower value = runs earlier (outermost wrapper = first at request time).

 Request ──► EARLY middlewares ──► DEFAULT middlewares ──► LATE middlewares ──► handler
 

Within the same phase, extensions execute in install order (sort is stable). Raw integers are valid for fine-grained ordering within a phase (e.g. ExtensionPhase.EARLY.value + 10).

  • Enum Constant Details

    • EARLY

      public static final ExtensionPhase EARLY
      Security guards, rate limiting — must short-circuit before expensive processing.
    • DEFAULT

      public static final ExtensionPhase DEFAULT
      Normal application extensions. Default when FlashExtension.priority() is not overridden.
    • LATE

      public static final ExtensionPhase LATE
      Observability, logging, diagnostics — must observe after all business logic.
  • Field Details

    • value

      public final int value
      The integer priority value used for sorting.
  • Method Details

    • values

      public static ExtensionPhase[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ExtensionPhase valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null