[jboss-user] [Microcontainer] - Re: Code example for a basic parsing deployer
alesj
do-not-reply at jboss.com
Wed Mar 26 11:20:55 EDT 2008
"david.lloyd at jboss.com" wrote :
| I guess in this case my "outer" metadata unit is just a "holder" for the different types of actual metadata. In this case I guess I won't implement BeanMetaDataFactory on it, but rather on each metadata class that translates into beans.
Your top element/metadata must implement BMDF, since that is how AbstractKernelDeployment is able to understand what you've put as any element:
| @XmlElements
| ({
| @XmlElement(name="bean", type=AbstractBeanMetaData.class),
| @XmlElement(name="beanfactory", type=GenericBeanFactoryMetaData.class),
| @XmlElement(name="lazy", type=AbstractLazyMetaData.class)
| })
| @XmlAnyElement
| public void setBeanFactories(List<BeanMetaDataFactory> beanFactories)
| {
| this.beanFactories = beanFactories;
| flushJBossObjectCache();
| }
|
What you do in that method, how you get the beanmetadatas, is up to you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139020#4139020
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139020
More information about the jboss-user
mailing list