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 DocumentBuilderFactory
Constructor and Description |
---|
DocumentBuilderFactoryImpl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String arg0)
Deprecated.
|
boolean |
getFeature(String arg0)
Deprecated.
|
Schema |
getSchema()
Deprecated.
|
static boolean |
isDOOMRequired()
Deprecated.
|
DocumentBuilder |
newDocumentBuilder()
Deprecated.
|
static DocumentBuilderFactory |
newInstance()
Deprecated.
|
void |
setAttribute(String arg0,
Object arg1)
Deprecated.
|
static void |
setDOOMRequired(boolean isDOOMRequired)
Deprecated.
|
void |
setFeature(String name,
boolean value)
Deprecated.
|
void |
setSchema(Schema schema)
Deprecated.
|
isCoalescing, isExpandEntityReferences, isIgnoringComments, isIgnoringElementContentWhitespace, isNamespaceAware, isValidating, isXIncludeAware, newInstance, setCoalescing, setExpandEntityReferences, setIgnoringComments, setIgnoringElementContentWhitespace, setNamespaceAware, setValidating, setXIncludeAware
protected Schema schema
public static boolean isDOOMRequired()
public static void setDOOMRequired(boolean isDOOMRequired)
public DocumentBuilder newDocumentBuilder() throws ParserConfigurationException
newDocumentBuilder
in class DocumentBuilderFactory
ParserConfigurationException
public Object getAttribute(String arg0) throws IllegalArgumentException
getAttribute
in class DocumentBuilderFactory
IllegalArgumentException
public void setAttribute(String arg0, Object arg1) throws IllegalArgumentException
setAttribute
in class DocumentBuilderFactory
IllegalArgumentException
public static DocumentBuilderFactory newInstance()
public void setFeature(String name, boolean value) throws ParserConfigurationException
setFeature
in class DocumentBuilderFactory
ParserConfigurationException
public boolean getFeature(String arg0) throws ParserConfigurationException
getFeature
in class DocumentBuilderFactory
ParserConfigurationException
public void setSchema(Schema schema)
setSchema
in class DocumentBuilderFactory
public Schema getSchema()
getSchema
in class DocumentBuilderFactory
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.