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.