-
1. Re: JDK 5 annotated method pointcut
flavia.rainone Jul 1, 2009 3:15 PM (in response to kedzie)Hi!
You need to configure the aoppath so that your annotated classes can be found by JBoss AOP.
Take a look at the examples build script (at JBoss AOP dist, the script that is used to run the examples). There you will find an example of how aoppath is configured so that JBoss AOP finds your annotations. -
2. Re: JDK 5 annotated method pointcut
kedzie Jul 2, 2009 10:26 AM (in response to kedzie)I set the aoppath, and the aop compiler finds the Aspect class correctly. It is the pointcut that doesn't work. I get the same result when I use a jboss-aop.xml file instead of annotations to define the pointcut (pointcut still points to an annotated method). When I change the pointcut to a specific method or group of methods it works fine. I just can't get it to find annotated methods.
-
3. Re: JDK 5 annotated method pointcut
whitingjr Aug 4, 2009 3:38 AM (in response to kedzie)Hi,
I also am trying to implement pointcuts using annotated methods. Also seeing the same problem of no aspect invocation.
Jeremy -
4. Re: JDK 5 annotated method pointcut
whitingjr Aug 4, 2009 4:38 AM (in response to kedzie)BTW, the version of AOP I am using is 2.1.1.GA. The one bundled in AS 5.1.0.GA
Jeremy -
5. Re: JDK 5 annotated method pointcut
whitingjr Aug 12, 2009 1:07 PM (in response to kedzie)Try setting the RetentionPolicy on your method annotation.
@Target({ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface MyAnnotation {}
This solved the problem for me.