Brian Topping wrote:
Hi all,
Looking at http://cvs.sourceforge.net/viewcvs.py/dom4j/dom4j/src/java/org/dom4j/DocumentFactory.java?rev=1.41&view=auto, I'm finding that it's difficult to change the org.dom4j.factory property. I'm not a big properties guy, so maybe I am a clown. Here is my code in one of my own files:
static {
// set up dom4j
System.setProperty("org.dom4j.factory", PluginDocumentFactory.class.getName());
}
I set breakpoints in my code and the DocumentFactory class, but my property is not set until after getInstance is called for the first time in the static instantiation, rendering my set (and the whole reason to have this property in the first place) useless.
Is this call to getInstance() on line 65 something that was added recently? Could it be taken out? The first call would obviously be slower, but you could more reliably swap the DocumentFactory.
Thanks!
Brian
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user