1 22 package org.jboss.test.aop.precedence; 23 24 import org.jboss.aop.joinpoint.Invocation; 25 import org.jboss.aop.advice.Interceptor; 26 27 32 public class SimpleInterceptor2 implements Interceptor 33 { 34 public String getName() { return "SimpleInterceptor2"; } 35 36 public Object invoke(Invocation invocation) throws Throwable  37 { 38 System.out.println("SimpleInterceptor2"); 39 Interceptions.add("SimpleInterceptor2"); 40 return invocation.invokeNext(); 41 } 42 } 43 | Popular Tags |