arch@glassfish.java.net

Re: [arch] Re: [Issue 2888] [admin] Try to use standard JDK classes only

From: Bill Shannon <bill.shannon_at_oracle.com>
Date: Wed, 20 Oct 2010 17:31:36 -0700

Tom Mueller wrote on 10/20/10 05:04 PM:
>>> com.sun.org.apache.xerces.internal.parsers.DOMParser
>>> This is used in two places. Once for setting the default parser to use when
>>> parsing deployment descriptors (DeploymentDescriptorFile) and the other in the
>>> flashlight/framework module. The later case can probabably void using DOMParser
>>> altogether.
>>
>> For the former, is it trying to override the default, or is it trying to
>> make sure no one else who overrides the default effects this code?
> The latter. It sets the parser to DOMParser, parses the document, and then restores the previous value.

You can't just clear the property or set it to null or something to force
the default, without knowing the name of the default parser?