Package dev.relism.flash.extension
Enum Class ExtensionPhase
- All Implemented Interfaces:
Serializable,Comparable<ExtensionPhase>,Constable
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).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionPhaseReturns the enum constant of this class with the specified name.static ExtensionPhase[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EARLY
Security guards, rate limiting — must short-circuit before expensive processing. -
DEFAULT
Normal application extensions. Default whenFlashExtension.priority()is not overridden. -
LATE
Observability, logging, diagnostics — must observe after all business logic.
-
-
Field Details
-
value
public final int valueThe integer priority value used for sorting.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-