[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Registering a bean as an aspect in the bootstrap
kabir.khan@jboss.com
do-not-reply at jboss.com
Sat Feb 10 16:08:32 EST 2007
"scott.stark at jboss.org" wrote :
| 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?
|
|
This has been fixed, you can now do:
| <aop:lifecycle-configure xmlns:aop="urn:jboss:aop-beans:1.0"
| name="JMXLifecycle"
| class="org.jboss.test.microcontainer.support.TestAspect"
| classes="@org.jboss.aop.microcontainer.aspects.jmx.JMX"
| method="foo"
| pointcut="execution(* @org.jboss.aop.microcontainer.aspects.jmx.JMX->$implements{org.jboss.kernel.spi.dependency.KernelControllerContextAware}(..))">
| <property name="shouldInvoke">false</property>
| </aop:lifecycle-configure>
|
"method" specifies the aspect method
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4014255#4014255
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4014255
More information about the jboss-dev-forums
mailing list