Package javax.enterprise.inject.spi
Enum InterceptionType
- All Implemented Interfaces:
Serializable
,Comparable<InterceptionType>
,java.lang.constant.Constable
Identifies the kind of lifecycle callback, Jakarta Enterprise Bean 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 ConstantsEnum ConstantDescriptionIntercepts a constructor invocationIntercepts method invocationIntercepts a timeoutIntercepts bean activation, only called for Jakarta Enterprise BeansIntercepts bean constructionIntercepts bean destructionIntercepts bean passivation, only called for Jakarta Enterprise Beans -
Method Summary
Modifier and TypeMethodDescriptionstatic InterceptionType
Returns the enum constant of this type with the specified name.static InterceptionType[]
values()
Returns an array containing the constants of this enum type, 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 Jakarta Enterprise Beans -
POST_ACTIVATE
Intercepts bean activation, only called for Jakarta Enterprise Beans
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-