1 22 package org.jboss.test.aop.deployers.annotations; 23 24 import org.jboss.aop.Aspect; 25 import org.jboss.aop.Bind; 26 import org.jboss.aop.joinpoint.Invocation; 27 28 33 @Aspect 34 public class SomeAspect 35 { 36 public static int invoked; 37 38 @Bind(pointcut="execution(* org.jboss.test.aop.deployers.annotations.POJO->someMethod())") 39 public Object invoke(Invocation invocation) throws Throwable  40 { 41 invoked++; 42 return invocation.invokeNext(); 43 } 44 45 } 46 | Popular Tags |