1 22 package org.jboss.test.aop.scoped; 23 24 import org.jboss.aop.Bind; 25 import org.jboss.aop.InterceptorDef; 26 import org.jboss.aop.advice.Interceptor; 27 import org.jboss.aop.joinpoint.Invocation; 28 29 34 @InterceptorDef() 35 @Bind(pointcut="all(org.jboss.test.aop.scoped.POJO)") 36 public class AnnotatedInterceptor implements Interceptor 37 { 38 static boolean invoked; 39 public String getName() 40 { 41 return this.getClass().getName(); 42 } 43 44 public Object invoke(Invocation invocation) throws Throwable  45 { 46 invoked = true; 47 return invocation.invokeNext(); 48 } 49 50 } 51 | Popular Tags |