Version 2

    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>
       <bind pointcut="execution(* POJO->*(..))">
           <stack-ref name="stuff"></stack-ref>


    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:

         [java] SimpleInterceptor1
         [java] SimpleInterceptor2
         [java] SimpleInterceptor3
         [java] someMethod()