1 22 import org.jboss.aop.joinpoint.Invocation; 23 import org.jboss.aop.advice.Interceptor; 24 25 30 public class CallerInterceptor2 implements Interceptor 31 { 32 public String getName() { return "CallerInterceptor2"; } 33 34 public Object invoke(Invocation invocation) throws Throwable  35 { 36 try 37 { 38 System.out.println("<<< Entering CallerInterceptor2"); 39 return invocation.invokeNext(); 40 } 41 finally 42 { 43 System.out.println(">>> Leaving CallerInterceptor2"); 44 } 45 } 46 } 47 | Popular Tags |