1 22 package org.jboss.test.aop.junit; 23 24 import org.jboss.aop.advice.Interceptor; 25 import org.jboss.aop.joinpoint.Invocation; 26 27 33 public class TestInterceptor implements Interceptor 34 { 35 public static boolean intercepted = false; 36 37 public String getName() 38 { 39 return getClass().getName(); 40 } 41 42 public Object invoke(Invocation invocation) throws Throwable  43 { 44 intercepted = true; 45 return invocation.invokeNext(); 46 } 47 } 48 | Popular Tags |