[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Configuration Errors

trustin do-not-reply at jboss.com
Fri May 15 04:37:21 EDT 2009


Ah, we are using JAXB.  I thought we are something like SAX.  Sorry about the noise.

Then, what about improving JBoss JAXB itself to maintain a complete map that maps an object property to the location of the XML file?  For example:

Location l = map.getLocation(object, "bindAddress");
String path = l.getPath();
int lineno = l.getLineNumber();
int column = l.getColumn();
..

This map and location information could be written generic enough so that it can be used with different configuration file formats, as long as the configuration parser (JAXB implementation in the case above) puts the appropriate information when it processes the configuration file.

I hope my idea makes sense this time. :)

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

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



More information about the jboss-dev-forums mailing list