Uh, show me the magic to make System.getProperty a function of the calling
context that does not violate the jdk license.
Otherwise, read the jaxp DocumentBuilderFactory.newInstance javadoc and try to
use a configuration mechanism that has a quality which is not global in
character.
public static DocumentBuilderFactory newInstance()
throws FactoryConfigurationError
Obtain a new instance of a DocumentBuilderFactory. This static method
creates a new factory instance. This method uses the following ordered lookup
procedure to determine the DocumentBuilderFactory implementation class to load:
* Use the javax.xml.parsers.DocumentBuilderFactory system property.
* Use the properties file "lib/jaxp.properties" in the JRE directory.
This configuration file is in standard java.util.Properties format and contains
the fully qualified name of the implementation class with the key being the
system property defined above.
* Use the Services API (as detailed in the JAR specification), if
available, to determine the classname. The Services API will look for a
classname in the file
META-INF/services/javax.xml.parsers.DocumentBuilderFactory in jars available to
the runtime.
* Platform default DocumentBuilderFactory instance.
Once an application has obtained a reference to a DocumentBuilderFactory it
can use the factory to configure and obtain parser instances.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3865091#3865091
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3865091
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user