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