Enum Class InterceptPhase

java.lang.Object
java.lang.Enum<InterceptPhase>
io.micronaut.aop.InterceptPhase
All Implemented Interfaces:
Serializable, Comparable<InterceptPhase>, Constable

public enum InterceptPhase extends Enum<InterceptPhase>

Interceptor classes implement the Ordered interface in order to control the order of execution when multiple interceptors are present.

This class provides a set of common constants for typical phases used by interceptors thus making it easier to position an interceptor in the correct phase.

Since:
1.0
Author:
Graeme Rocher
  • Enum Constant Details

    • VALIDATE

      public static final InterceptPhase VALIDATE
      Validation phase of execution.
    • CACHE

      public static final InterceptPhase CACHE
      Caching phase of execution.
    • TRACE

      public static final InterceptPhase TRACE
      Trace phase of execution.
    • RETRY

      public static final InterceptPhase RETRY
      Retry phase of execution.
    • ASYNC

      public static final InterceptPhase ASYNC
      Async phase of execution.
    • TRANSACTION

      public static final InterceptPhase TRANSACTION
      Transaction phase of execution.
  • Method Details

    • values

      public static InterceptPhase[] 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 InterceptPhase 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
    • getPosition

      public int getPosition()
      Returns:
      The position