Package io.micronaut.aop
Annotation Interface InterceptorBean
@Documented
@Retention(RUNTIME)
@Target({ANNOTATION_TYPE,TYPE,METHOD})
@Bean
@DefaultScope(jakarta.inject.Singleton.class)
public @interface InterceptorBean
A meta-annotation that can be used on
MethodInterceptor
declarations to specify
the InterceptorBinding
and make the type a bean.- Since:
- 2.4.0
- Author:
- graemerocher
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionClass<? extends Annotation>[]
The value of this annotation can be used to indicate the annotations theMethodInterceptor
binds to at runtime.
-
Element Details
-
value
Class<? extends Annotation>[] valueThe value of this annotation can be used to indicate the annotations theMethodInterceptor
binds to at runtime.- Returns:
- The annotation type the interceptor binds to.
-