[jboss-dev-forums] [Design of AOP on JBoss (Aspects/JBoss)] - Implementing JAXB style parsing for aop-mc-int

kabir.khan@jboss.com do-not-reply at jboss.com
Thu Feb 21 08:43:13 EST 2008


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#4131068

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



More information about the jboss-dev-forums mailing list