Package jakarta.interceptor
Annotation Type Interceptors
-
@Target({TYPE,METHOD,CONSTRUCTOR}) @Retention(RUNTIME) public @interface InterceptorsDeclares an ordered list of interceptors for a target class, or for a method or a constructor of a target class.@Interceptors(ValidationInterceptor.class) public class Order { ... }@Interceptors({ValidationInterceptor.class, SecurityInterceptor.class}) public void updateOrder(Order order) { ... }Only business method interception or timeout method interception may be specified by a method-level
Interceptorsdeclaration.Constructor interception may be specified by a constructor-level
Interceptorsdeclaration.- Since:
- Jakarta Interceptors 1.0
- See Also:
ExcludeClassInterceptors,ExcludeDefaultInterceptors
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class[]valueAn ordered list of interceptors.
-