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