This content has been marked as final.
Show 1 reply
-
1. Re: dynamic-aop example
flavia.rainone Jul 6, 2009 3:44 PM (in response to exodus)Hi!
If you don't want to use the jboss-aop.xml file, you have to use annotations intead.
Replace the jboss-aop.xml file with an aspect class like the one below:@Aspect public class SomeAspect { @Prepare ("all(org.jboss.test.aop.jdk15annotated.PreparePOJO)") public static Pointcut preparePOJO; }
Replace "all(org.jboss.test.aop.jdk15annoated.PreparePOJO)" by the prepare expression you want to use.
Finally, don't forget to set the aoppath so that JBoss AOP can load the annotated class in the same way it would load the jboss-aop.xml (take a look at the annotated target of the annotated tutorial examples).