@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public @interface AroundCall
SimpleInterceptorStack#next() to execute
the next interceptor stack. The target method must have only one parameter with SimpleInterceptorStack or
InterceptorStack type, and you can't have more than one method annotated with AroundCall
in the same class.
\@AroundCall
public void intercept(SimpleInterceptorStack stack) {
System.out.println("Executing before");
stack.next();
System.out.println("Executing after");
}
Copyright © 2014 Caelum. All rights reserved.