Package io.micronaut.aop
Annotation Interface InterceptorBinding
@Documented
@Retention(RUNTIME)
@Target({ANNOTATION_TYPE,TYPE})
@Repeatable(InterceptorBindingDefinitions.class)
public @interface InterceptorBinding
An
InterceptorBinding
is used as a meta-annotation on Around
and Introduction
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
- Author:
- graemerocher
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
By default, annotation members are not used when resolving interceptors.Class<? extends Annotation>
When declared on an interceptor, the value of this annotation can be used to indicate the annotation theMethodInterceptor
binds to at runtime. -
Field Summary
-
Field Details
-
META_BIND_MEMBERS
The bind members name.- See Also:
-
-
Element Details
-
value
Class<? extends Annotation> valueWhen 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:
- AROUND
-
bindMembers
boolean bindMembersBy 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:
- Default:
- false
-