Annotation Interface Interceptor


@Retention(RUNTIME) @Target(TYPE) @Documented public @interface Interceptor
Specifies that a class is an interceptor.
 @Validated @Interceptor
 public class ValidationInterceptor { ... }
 

Use of this annotation is required when declaring an interceptor using interceptor binding annotations. It is ignored during the processing of classes bound using the Interceptors annotation (or when the Jakarta Enterprise Beans deployment descriptor is used to associate the interceptor with the target class).

Since:
Jakarta Interceptors 1.1
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Priorities that define the order in which interceptors are invoked.