On Thu, 2 Oct 2003 11:33, Adrian Brock wrote:
> CIMF (Code It Mother F*ck*r) and submit the patch :-)

Language! I'm so [EMAIL PROTECTED]&^ shocked! ;-)

I have just about done so but a question about how I've done it....

I wanted to set a default error handler for every parser, not just this one.

So I created a new document factory called LoggingDocumentBuilderFactory that 
just delegates to the real DocumentBuilderFactory but adds a default 
ErrorHandler to every parser created. The ErrorHandler is one I've coded to 
use the standard JBoss logging. 

Then I just replace every usage of the DocumentBuilderFactory.newInstance() to 
call my one. (there are 8 or 9 of these). Should probably also look at doing 
the same for XMLReaderFacory but it doesn't seem to be used anywhere (no SAX 
parsers used?)

brian wallis...



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to