[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Parsing more than one file

adrian@jboss.org do-not-reply at jboss.com
Fri Mar 28 08:20:30 EDT 2008


The parsing multiple files has two parts:

1) Being able to parse n files into one piece of metatdata from one parsing deployer

This is so you can deploy something programmatically properly.
e.g. You pass EjbJarMetaData. The current parsing deployers will say,
ok I'm not going to reparse ejb-jar.xml but I will reparse jboss.xml
which is wrong

2) Being able to parse multiple files with the same suffix from META-INF.

e.g.
META-INF/a-beans.xml
META-INF/b-beans.xml

should create two KernelDeployment attachments (with the attachment names
as the metadata url).

But this requires the deployers further down the chain to understand it.
i.e. not use getAttachments(KernelDeployment.class) but use
getAllAttachments(KernelDeployment.class) and handle the multiple pieces
of configuration correctly.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139639#4139639

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



More information about the jboss-dev-forums mailing list