[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Getting content of XML element
kabir.khan@jboss.com
do-not-reply at jboss.com
Wed Nov 21 04:23:20 EST 2007
"adrian at jboss.org" wrote :
| Why do you want to do this? This is usually horrible.
| Is this the old XmlLoadable stuff?
|
It is to support the ClassMetaData stuff, e.g. I need to be able to translate the following -aop.xml style stuff
| <metadata tag="SomeTag" class="org.jboss.test.aop.bean.POJOConstructorTest">
| <constructor expr="POJO()">
| <data>ctor</data>
| </constructor>
| <method expr="int *(..)">
| <data>method1</data>
| </method>
| <method expr="void *()">
| <data>method2</data>
| </method>
| </metadata>
|
into
| <bean name="ClassMetaData" class="org.jboss.aop.microcontainer.beans2.ClassMetaData">
| <property name="manager"><inject bean="AspectManager"/></property>
| <property name="tag">SomeTag</property>
| <property name="className">org.jboss.test.microcontainer.beans2.POJO</property>
| <property name="element">
| <![CDATA[
| <metadata>
| <constructor expr="POJO()">
| <data>ctor</data>
| </constructor>
| <method expr="int *(..)">
| <data>method1</data>
| </method>
| <method expr="void *()">
| <data>method2</data>
| </method>
| </metadata>
| ]]>
| </property>
| </bean>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106651#4106651
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106651
More information about the jboss-dev-forums
mailing list