1 22 package org.jboss.test.aop.annotatedparams; 23 24 import org.jboss.aop.advice.Interceptor; 25 import org.jboss.aop.joinpoint.Invocation; 26 27 32 public class SimpleInterceptor implements Interceptor 33 { 34 public static boolean intercepted; 35 36 public String getName() 37 { 38 return "SimpleInterceptor"; 39 } 40 41 public Object invoke(Invocation invocation) throws Throwable  42 { 43 intercepted = true; 44 System.out.println("SimpleInterceptor invoking: " + invocation); 45 return invocation.invokeNext(); 46 } 47 48 } 49 | Popular Tags |