|
From: <kab...@jb...> - 2006-07-06 13:05:29
|
I've made some changes to AspectBeanMetaDataFactory.
| <aop:aspect xmlns:aop="urn:jboss:aop-beans:1.0"
| name="InterceptedAdvice"
| class="org.jboss.test.microcontainer.support.CalledInterceptor"
| pointcut="execution(* $instanceof{org.jboss.test.microcontainer.support.SimpleBean}->*(..))">
| </aop:aspect>
|
has no dependencies and now becomes:
| <beanfactory name="InterceptedAdvice" class="org.jboss.test.microcontainer.support.CalledInterceptor"/>
|
| <bean name="InterceptedAdvice$Aspect" class="org.jboss.aop.microcontainer.beans.Aspect">
| <property name="advice"><inject bean="InterceptedAdvice"/></property>
| <property name="manager"><inject bean="AspectManager"/></property>
| </bean>
|
| <bean name="InterceptedBinding" class="org.jboss.aop.microcontainer.beans.AspectBinding">
| <property name="pointcut">execution(* $instanceof{org.jboss.test.microcontainer.support.SimpleBean}->*(..))</property>
| <property name="aspect"><inject bean="InterceptedAdvice$Aspect" property="definition"/></property>
| <property name="manager"><inject bean="AspectManager"/></property>
| </bean>
|
And the following
| <aop:aspect xmlns:aop="urn:jboss:aop-beans:1.0"
| name="InterceptedAdvice"
| class="org.jboss.test.microcontainer.support.InterceptorWithDependency"
| pointcut="execution(* $instanceof{org.jboss.test.microcontainer.support.SimpleBean}->*(..))">
| <property name="simpleBean"><inject bean="Dependency"/></property>
| </aop:aspect>
|
which has dependencies still becomes
| <beanfactory name="InterceptedAdvice" class="org.jboss.test.microcontainer.support.InterceptorWithDependency">
| <property name="simpleBean"><inject bean="Dependency"/></property>
|
| <!-- Enables the deployed AspectDefinition and injects into the AspectFactory -->
| <install bean="InterceptedAdvice$Aspect" method="install">
| <parameter><this/></parameter>
| </install>
|
| <!-- undeploys the AspectDefinition, so it is not available when updating the interceptors -->
| <uninstall bean="InterceptedAdvice$Aspect" method="uninstall"/>
|
| <!-- Same as before: removes and reinstalls the AdviceBinding/AdviceFactory with the new
| AspectDefinition/AspectFactory -->
| <install bean="InterceptedAdvice$AspectBinding" method="rebind">
| <parameter><inject bean="InterceptedAdvice$Aspect" property="definition"/></parameter>
| </install>
| </beanfactory>
|
| <bean name="InterceptedAdvice$Aspect" class="org.jboss.aop.microcontainer.prototype.Aspect">
| <property name="adviceBean">InterceptedAdvice</property>
| <property name="manager"><inject bean="AspectManager"/></property>
| </bean>
|
| <bean name="InterceptedAdvice$AspectBinding" class="org.jboss.aop.microcontainer.prototype.AspectBinding">
| <property name="pointcut">execution(* @org.jboss.test.microcontainer.support.Test->*(..))</property>
| <property name="aspect"><inject bean="InterceptedAdvice$Aspect" property="definition"/></property>
| <property name="manager"><inject bean="AspectManager"/></property>
| </bean>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955835#3955835
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955835
|