Package jakarta.enterprise.inject.spi
Enum Class InterceptionType
- All Implemented Interfaces:
Serializable
,Comparable<InterceptionType>
,Constable
Identifies the kind of lifecycle callback, EJB timeout method or business method interception.
- Author:
- Gavin King, Pete Muir
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIntercepts a constructor invocationIntercepts method invocationIntercepts a timeoutIntercepts bean activation, only called for EJBsIntercepts bean constructionIntercepts bean destructionIntercepts bean passivation, only called for EJBs -
Method Summary
Modifier and TypeMethodDescriptionstatic InterceptionType
Returns the enum constant of this class with the specified name.static InterceptionType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AROUND_INVOKE
Intercepts method invocation -
AROUND_TIMEOUT
Intercepts a timeout -
AROUND_CONSTRUCT
Intercepts a constructor invocation -
POST_CONSTRUCT
Intercepts bean construction -
PRE_DESTROY
Intercepts bean destruction -
PRE_PASSIVATE
Intercepts bean passivation, only called for EJBs -
POST_ACTIVATE
Intercepts bean activation, only called for EJBs
-
-
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
-