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