[jboss-user] [JBoss AOP] - Re: Maybe I just don't get it

flavia.rainone@jboss.com do-not-reply at jboss.com
Tue May 13 17:07:14 EDT 2008


You need to prepare your instances for dynamic aop:

http://www.jboss.org/jbossaop/docs/1.5.0.GA/docs/aspect-framework/reference/en/html/dynamic.html#dyn-1
http://www.jboss.org/jbossaop/docs/1.5.0.GA/docs/aspect-framework/reference/en/html/xml.html#xml-prepare
http://www.jboss.org/jbossaop/docs/1.5.0.GA/docs/aspect-framework/reference/en/html/annotated.html#annotated-prepare

Here is an example:

http://www.jboss.org/jbossaop/docs/1.5.0.GA/docs/aspect-framework/examples/dynamic-aop/dynamic.html

The preparation must be done either by aopc, or by loadtime-weaving. Since you're using load-time weaving, you should be fine that way. Just add the preparation annotation to the class you need to intercept at runtime, or add the prepare pointcut expression to your jboss-aop.xml.

I hope this solves your issue!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150527#4150527

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150527



More information about the jboss-user mailing list