Author: darran.lofthouse(a)jboss.com
Date: 2008-09-26 10:27:12 -0400 (Fri, 26 Sep 2008)
New Revision: 8242
Modified:
common/branches/dlofthouse/JBWS-2304/src/main/java/org/jboss/wsf/common/DOMUtils.java
Log:
Allow OwnerDocument to be set by caller.
Modified:
common/branches/dlofthouse/JBWS-2304/src/main/java/org/jboss/wsf/common/DOMUtils.java
===================================================================
---
common/branches/dlofthouse/JBWS-2304/src/main/java/org/jboss/wsf/common/DOMUtils.java 2008-09-26
11:20:44 UTC (rev 8241)
+++
common/branches/dlofthouse/JBWS-2304/src/main/java/org/jboss/wsf/common/DOMUtils.java 2008-09-26
14:27:12 UTC (rev 8242)
@@ -570,6 +570,17 @@
return (parent instanceof Element ? (Element)parent : null);
}
+ /** Peek at the owner document without creating a new one if not set. */
+ public static Document peekOwnerDocument()
+ {
+ return documentThreadLocal.get();
+ }
+
+ public static void setOwnerDocument(Document doc)
+ {
+ documentThreadLocal.set(doc);
+ }
+
/** Get the owner document that is associated with the current thread */
public static Document getOwnerDocument()
{
Show replies by date