Given the following XML:
<?xml version="1.0" encoding="UTF-8"?>
| <jboss-mb
xmlns="http://www.jboss.com/xml/ns/javaee"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee
|
http://www.jboss.org/j2ee/schema/jboss_mb_0_1.xsd"
| version="0.1">
| <managed-beans>
| <managed-bean>
| <name>SimpleResourceBean</name>
|
<bean-class>org.jboss.reloaded.injection.test.simple.SimpleResourceBean</bean-class>
| </managed-bean>
| </managed-beans>
| </jboss-mb>
I want ManagedBeansMetaData to be a List.
public class ManagedBeansMetaData extends ArrayList<ManagedBeanMetaData>
So I can simply do this in my deployment visitor:
protected List<ManagedBeanMetaData> getComponents(ManagedBeanJarMetaData
deployment)
| {
| return deployment.getManagedBeans();
| }
Plus it makes more sense.
How do I annotate ManagedBeansMetaData and ManagedBeanMetaData to make that work?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233181#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...