Index Changes

Understanding the Intercept Annotation

The @Intercept annotation on a method indicates that the method is a interceptor.

This annotation is defined as follows :

@Target(value = {ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Intercept      
{
    String consumer() default "";
    String provider() default "";
    String message()  default "";
    String service()  default "";
    String status()   default "";
    int    priority() default 100;
}

In addition to identifying the method as an interceptor method, it can be used to limit the scope of interception.

Each of the annotation properties can be specified by the developer to define the Interception Scope.

JSPWiki v2.4.100
[RSS]
« Home Index Changes Prefs
This page (revision-2) was last changed on 30-Jul-09 14:33 PM, -0700 by MarkWhite