I am trying to implement the new JAXB style parsing for aop-mc-int, and have a few
questions.
I don't think it will be possible anymore to do things like the following since
"deployment" maps onto "AbstractKernelDeployment", which knows nothing
about the aop classes.
| <deployment xmlns="urn:jboss:bean-deployer:2.0">
|
| <aspect xmlns="urn:jboss:aop-beans:1.0"
class="org.jboss.test.microcontainer.beans.TestAspect">
| </aspect>
|
| <bind xmlns="urn:jboss:aop-beans:1.0" pointcut="execution(*
org.jboss.test.microcontainer.beans.POJO->*(..))">
| <advice aspect="org.jboss.test.microcontainer.beans.TestAspect"
name="advice"/>
| </bind>
|
| <bean name="Bean"
class="org.jboss.test.microcontainer.beans.POJO"/>
|
| </deployment>
|
|
So I think I need a AOP top-level deployment type, and to rewrite the above xml to
something like
| <aop xmlns="urn:jboss:aop-beans:1.0"
xmlns:bean="urn:jboss:bean-deployer:2.0" >
| <aspect name="withdependency"
class="org.jboss.test.microcontainer.beans.TestAspectWithDependency"/>
|
| <bind xmlns="urn:jboss:aop-beans:1.0" pointcut="execution(*
org.jboss.test.microcontainer.beans.POJO->*(..))">
| <advice aspect="org.jboss.test.microcontainer.beans.TestAspect"
name="advice"/>
| </bind>
|
| <bean:bean name="Bean"
class="org.jboss.test.microcontainer.beans.POJO"/>
| </aop>
|
This raises a few issues which I will continue to post to this thread once they become a
bit clearer
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131068#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...