org.apache.xmlbeans
public static final class: XmlFactoryHook.ThreadContext [javadoc |
source]
java.lang.Object
org.apache.xmlbeans.XmlFactoryHook$ThreadContext
Used to manage the XmlFactoryHook for the current thread.
| Method from org.apache.xmlbeans.XmlFactoryHook$ThreadContext Summary: |
|---|
|
getHook, setHook |
| Method from org.apache.xmlbeans.XmlFactoryHook$ThreadContext Detail: |
public static XmlFactoryHook getHook() {
SoftReference softRef = (SoftReference)threadHook.get();
return softRef==null ? null : (XmlFactoryHook)softRef.get();
}
Returns the current thread's hook, or null if none. |
public static void setHook(XmlFactoryHook hook) {
threadHook.set(new SoftReference(hook));
}
Sets the hook for the current thread. |