Package io.micronaut.aop
Annotation Type 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 onMethodInterceptor
declarations to specify theInterceptorBinding
and make the type a bean.- Since:
- 2.4.0
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<? extends java.lang.annotation.Annotation>[]
value
The value of this annotation can be used to indicate the annotations theMethodInterceptor
binds to at runtime.
-
-
-
Element Detail
-
value
java.lang.Class<? extends java.lang.annotation.Annotation>[] value
The value of this annotation can be used to indicate the annotations theMethodInterceptor
binds to at runtime.- Returns:
- The annotation type the interceptor binds to.
-
-