[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Registering a bean as an aspect in the bootstrap

scott.stark@jboss.org do-not-reply at jboss.com
Wed Feb 7 02:08:31 EST 2007


Kabir, now none of the aspects configured via the AspectManager ctor xml are being applied, even when I add org.jboss.deployers to the include list. I have to specify the aspects via the aop:lifecycle-configure to get them to be applied.

There does not appear to be any support for specifying which method in an aspect to use via the aop:lifecycle-configure element. How would I map these aop.xml element to an aop:lifecycle-configure equivalent?


  |    <aspect name="track" class="org.jboss.profileservice.aop.TrackingAdvice"/>
  |                <bind pointcut="execution(* $instanceof{org.jboss.deployers.spi.attachments.Attachments}->addAttachment(..))">
  |                   <advice name="addAttachment" aspect="track"/>
  |                </bind>
  |                <bind pointcut="execution(* $instanceof{org.jboss.deployers.spi.attachments.Attachments}->removeAttachment(..))">
  |                   <advice name="removeAttachment" aspect="track"/>
  |                </bind>
  | 


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

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



More information about the jboss-dev-forums mailing list