Package io.micronaut.aop
Enum Class InterceptPhase
- All Implemented Interfaces:
Serializable
,Comparable<InterceptPhase>
,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
static InterceptPhase
Returns the enum constant of this class with the specified name.static InterceptPhase[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VALIDATE
Validation phase of execution. -
CACHE
Caching phase of execution. -
TRACE
Trace phase of execution. -
RETRY
Retry phase of execution. -
ASYNC
Async phase of execution. -
TRANSACTION
Transaction phase of execution.
-
-
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
-
getPosition
public int getPosition()- Returns:
- The position
-