Top Description Methods
javax.interceptor

public @Interface Interceptors

extends Annotation
Annotations
@Target:TYPE, METHOD, CONSTRUCTOR
@Retention:RUNTIME
Imports
java.lang.annotation.RetentionPolicy, .ElementType, .Target, .Retention

Declares 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 Interceptors declaration.

Constructor interception may be specified by a constructor-level Interceptors declaration.

Since
Interceptors 1.0
See Also
javax.interceptor.ExcludeClassInterceptors, javax.interceptor.ExcludeDefaultInterceptors

Method Summary

Modifier and TypeMethod and Description
public Class<T>[]
value()

An ordered list of interceptors.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public Class<T>[] value()

An ordered list of interceptors.