Package io.micronaut.aop
Annotation Type InterceptorBinding
-
@Documented @Retention(RUNTIME) @Target({ANNOTATION_TYPE,TYPE}) @Repeatable(InterceptorBindingDefinitions.class) public @interface InterceptorBinding
AnInterceptorBinding
is used as a meta-annotation onAround
andIntroduction
advice to indicate that AOP advice should be applied to the method and that any annotations that feature this stereotype annotation should be used to resolve associated interceptors at runtime.- Since:
- 2.4.0
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
bindMembers
By default annotation members are not used when resolving interceptors.InterceptorKind
kind
java.lang.Class<? extends java.lang.annotation.Annotation>
value
When declared on an interceptor, the value of this annotation can be used to indicate the annotation theMethodInterceptor
binds to at runtime.
-
-
-
Element Detail
-
value
java.lang.Class<? extends java.lang.annotation.Annotation> value
When declared on an interceptor, the value of this annotation can be used to indicate the annotation theMethodInterceptor
binds to at runtime.- Returns:
- The annotation type the interceptor binds to.
- Default:
- java.lang.annotation.Annotation.class
-
-
-
kind
InterceptorKind kind
- Returns:
- The kind of interceptor.
- Default:
- io.micronaut.aop.InterceptorKind.AROUND
-
-
-
bindMembers
boolean bindMembers
By default annotation members are not used when resolving interceptors. The value ofbindMembers()
can be set totrue
to indicate that annotation members should be used when binding interceptors to an annotation declaration.The
NonBinding
annotation should then be used on any annotation members that should not be included in this binding computation.- Returns:
- Whether members should be included in interceptor binding
- Since:
- 3.3.0
- See Also:
NonBinding
- Default:
- false
-
-