[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Lifecycle aspects revisited

kabir.khan@jboss.com do-not-reply at jboss.com
Sat Feb 10 16:21:02 EST 2007


I also think it should be possible to make the pointcut attribute optional for the lifecycle events


  |    <aop:lifecycle-configure xmlns:aop="urn:jboss:aop-beans:1.0"
  |                name="JMXLifecycle"
  |                class="org.jboss.aop.microcontainer.aspects.jmx.JMXIntroduction"
  |                classes="@org.jboss.aop.microcontainer.aspects.jmx.JMX"
  |    </aop:lifecycle-configure>
  | 

Since in most cases the pointcut will be something along the lines of


  | execution(* CLASSES_VALUE->$implements{org.jboss.kernel.spi.dependency.KernelControllerContextAware}(..))">
  | 

i.e.: 

  | execution(* @org.jboss.aop.microcontainer.aspects.jmx.JMX->$implements{org.jboss.kernel.spi.dependency.KernelControllerContextAware}(..))">
  | 

If something apart from this defaul needs doing it will be possible to specify the "pointcut" attribute as it works at present.

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

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



More information about the jboss-dev-forums mailing list