0 Replies Latest reply on Nov 11, 2006 11:01 AM by kabirkhan

    JBAOP-271 Hardcoded aspect manager

    kabirkhan

      For http://jira.jboss.com/jira/browse/JBAOP-271 I have made the AspectBeanMetaDataFactory not instantiate the AspectManager itself yet, but rather rely in it being installed as a bean.

      By default it will look for a bean called "AspectManager", but this can be overridden, using the manager-bean and manager-property attributes of aop:aspect, e.g:

       <aop:aspect xmlns:aop="urn:jboss:aop-beans:1.0"
       name="JMXAdvice"
       class="org.jboss.aop.microcontainer.aspects.jmx.JMXIntroduction"
       manager-bean="AspectManager"
       manager-property="aspectManager"
       pointcut="execution(* @org.jboss.aop.microcontainer.aspects.jmx.JMX->$implements{org.jboss.kernel.spi.dependency.KernelControllerContextAware}(..))">
       <property name="mbeanServer"><inject bean="JMXKernel" property="mbeanServer"/></property>
       </aop:aspect>