1 22 package org.jboss.test.aop.invoketarget; 23 24 import org.jboss.aop.advice.Interceptor; 25 import org.jboss.aop.joinpoint.Invocation; 26 27 32 public class BypassInterceptor implements Interceptor 33 { 34 public static int invocations; 35 public String getName() 36 { 37 return this.getClass().getName(); 38 } 39 40 public Object invoke(Invocation invocation) throws Throwable  41 { 42 this.invocations++; 43 return invocation.invokeTarget(); 44 } 45 46 } 47 | Popular Tags |