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

alesj do-not-reply at jboss.com
Mon Mar 31 09:36:02 EDT 2008


"adrian at jboss.org" wrote : 
  | 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.

This is done.
KernelDeploymentDeployer already handles KernelDeployments in such way - getAllMetaData(KernelDeployment.class).

"adrian at jboss.org" wrote : 
  | 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
  | 

This probably requires change into AbstractParsingDeployerWithOutput, to take more than one name?

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

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



More information about the jboss-dev-forums mailing list