Interceptor stacks
You can declare predefined lists of interceptors can be referenced in any bindings.
<stack name="stuff"> <interceptor class="SimpleInterceptor1"></interceptor> <interceptor class="SimpleInterceptor2"></interceptor> <interceptor class="SimpleInterceptor3"></interceptor> </stack> <bind pointcut="execution(* POJO->*(..))"> <stack-ref name="stuff"></stack-ref> </bind>
The element.
Run the example
To compile and run:
$ ant
It will javac the files and then run the AOPC precompiler to manipulate the bytecode, then finally run the example. The output should read as follows:
run: [java] SimpleInterceptor1 [java] SimpleInterceptor2 [java] SimpleInterceptor3 [java] someMethod()
Comments