org.apache.axiom.om.impl.dom.jaxp
Class DocumentBuilderFactoryImpl

java.lang.Object
  extended by javax.xml.parsers.DocumentBuilderFactory
      extended by org.apache.axiom.om.impl.dom.jaxp.DocumentBuilderFactoryImpl

Deprecated. This class has static methods that allow to switch between DOOM and the default DOM implementation as returned by JAXP. This was a hack introduced for Rampart. Recent versions of Rampart no longer rely on this hack. On the other hand usage of setDOOMRequired(boolean) in a concurrent environment can lead to unexpected behavior and severe bugs, as shown in WSCOMMONS-210 and AXIS2-1570. Due to the way newDocumentBuilder() is implemented, it is not possible to get rid of the setDOOMRequired hack without the risk of breaking existing code. Therefore this class has been deprecated in favor of DOOMDocumentBuilderFactory.

public class DocumentBuilderFactoryImpl
extends javax.xml.parsers.DocumentBuilderFactory


Field Summary
protected  javax.xml.validation.Schema schema
          Deprecated.  
 
Constructor Summary
DocumentBuilderFactoryImpl()
          Deprecated.  
 
Method Summary
 java.lang.Object getAttribute(java.lang.String arg0)
          Deprecated.  
 boolean getFeature(java.lang.String arg0)
          Deprecated.  
 javax.xml.validation.Schema getSchema()
          Deprecated.  
static boolean isDOOMRequired()
          Deprecated.  
 javax.xml.parsers.DocumentBuilder newDocumentBuilder()
          Deprecated.  
static javax.xml.parsers.DocumentBuilderFactory newInstance()
          Deprecated.  
 void setAttribute(java.lang.String arg0, java.lang.Object arg1)
          Deprecated.  
static void setDOOMRequired(boolean isDOOMRequired)
          Deprecated.  
 void setFeature(java.lang.String name, boolean value)
          Deprecated.  
 void setSchema(javax.xml.validation.Schema schema)
          Deprecated.  
 
Methods inherited from class javax.xml.parsers.DocumentBuilderFactory
isCoalescing, isExpandEntityReferences, isIgnoringComments, isIgnoringElementContentWhitespace, isNamespaceAware, isValidating, isXIncludeAware, newInstance, setCoalescing, setExpandEntityReferences, setIgnoringComments, setIgnoringElementContentWhitespace, setNamespaceAware, setValidating, setXIncludeAware
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

schema

protected javax.xml.validation.Schema schema
Deprecated. 
Constructor Detail

DocumentBuilderFactoryImpl

public DocumentBuilderFactoryImpl()
Deprecated. 
Method Detail

isDOOMRequired

public static boolean isDOOMRequired()
Deprecated. 

setDOOMRequired

public static void setDOOMRequired(boolean isDOOMRequired)
Deprecated. 

newDocumentBuilder

public javax.xml.parsers.DocumentBuilder newDocumentBuilder()
                                                     throws javax.xml.parsers.ParserConfigurationException
Deprecated. 
Specified by:
newDocumentBuilder in class javax.xml.parsers.DocumentBuilderFactory
Throws:
javax.xml.parsers.ParserConfigurationException

getAttribute

public java.lang.Object getAttribute(java.lang.String arg0)
                              throws java.lang.IllegalArgumentException
Deprecated. 
Specified by:
getAttribute in class javax.xml.parsers.DocumentBuilderFactory
Throws:
java.lang.IllegalArgumentException

setAttribute

public void setAttribute(java.lang.String arg0,
                         java.lang.Object arg1)
                  throws java.lang.IllegalArgumentException
Deprecated. 
Specified by:
setAttribute in class javax.xml.parsers.DocumentBuilderFactory
Throws:
java.lang.IllegalArgumentException

newInstance

public static javax.xml.parsers.DocumentBuilderFactory newInstance()
Deprecated. 

setFeature

public void setFeature(java.lang.String name,
                       boolean value)
                throws javax.xml.parsers.ParserConfigurationException
Deprecated. 
Specified by:
setFeature in class javax.xml.parsers.DocumentBuilderFactory
Throws:
javax.xml.parsers.ParserConfigurationException

getFeature

public boolean getFeature(java.lang.String arg0)
                   throws javax.xml.parsers.ParserConfigurationException
Deprecated. 
Specified by:
getFeature in class javax.xml.parsers.DocumentBuilderFactory
Throws:
javax.xml.parsers.ParserConfigurationException

setSchema

public void setSchema(javax.xml.validation.Schema schema)
Deprecated. 
Overrides:
setSchema in class javax.xml.parsers.DocumentBuilderFactory

getSchema

public javax.xml.validation.Schema getSchema()
Deprecated. 
Overrides:
getSchema in class javax.xml.parsers.DocumentBuilderFactory


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.