[jboss-dev-forums] [Design the new POJO MicroContainer] - FileStructure and FileMatcher

adrian@jboss.org do-not-reply at jboss.com
Tue Feb 5 13:50:07 EST 2008


A while ago we discussed adding FileMatcher "incallbacks" to the FileStructure
so we automatically added recognised file suffixes as subdeployments.

But this wasn't completed properly. Instead of making all
AbstractParsingDeployerWithOutputs (which knows about suffixes)
into FileMatcher implementations, only the bean shell deployer does this.

If we did this for every parsing deployer, then there would be no need for any hardwiring
in the FileStructure, e.g. -ds.xml and -service.xml

It would also correctly fail those deployments when the relevant parsing deployer
wasn't present. e.g. currently it will add -ds.xml as a subdeployment even
if the DataSource deployer isn't installed and then fail it with
"nobody processed the subdeployment" later on.

An additional request from Mark Newton is to apply the file matching process
to top level deployments as well.

Currently we allow a top level deployment to be called anything,
but that doesn't mean it will be correctly processed if the parsing deployer
doesn't recognise it.

The reasoning behind this was that I didn't want to have configure all
the suffixes in two places (the FileStructure and the ParsingDeployer),
but if the above change is implemented this argument goes away.

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

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



More information about the jboss-dev-forums mailing list