Module io.helidon.service.codegen
Package io.helidon.service.codegen
Enum Class InterceptionStrategy
- All Implemented Interfaces:
Serializable
,Comparable<InterceptionStrategy>
,Constable
Possible strategies to interception.
Whether interception is supported, and this is honored depends on implementation.
The strategy is (in Helidon service registry) only honored at compilation time. At runtime, it can only be enabled or disabled.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll annotations marked asRetentionPolicy.RUNTIME
andRetentionPolicy.CLASS
will qualify.All annotations marked asRetentionPolicy.RUNTIME
will qualify.Meta-annotation based.No annotations will qualify in triggering interceptor creation (interception is disabled). -
Method Summary
Modifier and TypeMethodDescriptionstatic InterceptionStrategy
Returns the enum constant of this class with the specified name.static InterceptionStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No annotations will qualify in triggering interceptor creation (interception is disabled). -
EXPLICIT
Meta-annotation based. Only annotations annotated withInterception.Intercepted
will qualify. This is the default strategy. -
ALL_RUNTIME
All annotations marked asRetentionPolicy.RUNTIME
will qualify. Also includes all usages ofEXPLICIT
. -
ALL_RETAINED
All annotations marked asRetentionPolicy.RUNTIME
andRetentionPolicy.CLASS
will qualify. Also includes all usages ofEXPLICIT
.
-
-
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
-