@Target(value={TYPE,METHOD,CONSTRUCTOR})
@Retention(value=RUNTIME)
public @interface Interceptors
@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
Interceptors declaration.
Constructor interception may be specified by a constructor-level Interceptors declaration.
ExcludeClassInterceptors,
ExcludeDefaultInterceptors| Modifier and Type | Required Element and Description |
|---|---|
java.lang.Class[] |
value
An ordered list of interceptors.
|