[jboss-user] [JBoss AOP] - Re: With compile-time weaving, why does AOP need run-time configuration?

Kabir Khan do-not-reply at jboss.com
Mon Sep 27 06:37:09 EDT 2010

Kabir Khan [http://community.jboss.org/people/kabir.khan%40jboss.com] created the discussion

"Re: With compile-time weaving, why does AOP need run-time configuration?"

To view the discussion, visit: http://community.jboss.org/message/563731#563731

Because JBoss AOP is fully dynamic when it comes to weaving. It follows a two step process

1) When the class is woven (either at compile time or when the class is first woven) we put in the hooks for interception to happen. These hooks are the same for a member matching the pointcut expression of a <bind> element or a <prepare> element.

2) When you create an instance of the class (at runtime) the advices are created according to the sub-elements of <bind> elements for its member hooks.

Reply to this message by going to Community

Start a new discussion in JBoss AOP at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100927/97e25edf/attachment.html 

More information about the jboss-user mailing list