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