Package org.dom4j.util
Class NonLazyDocumentFactory
java.lang.Object
org.dom4j.DocumentFactory
org.dom4j.util.NonLazyDocumentFactory
- All Implemented Interfaces:
Serializable
NonLazyDocumentFactory
is a factory of XML objects which avoid
using the lazy creation pattern. This results in a slower creation of a
Document and uses more memory but it means that the same Document instance
can be shared across threads provided it is not modified.
- Version:
- $Revision: 1.9 $
- Author:
- James Strachan
- See Also:
-
Field Summary
FieldsFields inherited from class org.dom4j.DocumentFactory
cache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateElement
(QName qname) static DocumentFactory
Access to the singleton instance of this factory.Methods inherited from class org.dom4j.DocumentFactory
createAttribute, createAttribute, createCDATA, createComment, createDocType, createDocument, createDocument, createDocument, createElement, createElement, createEntity, createNamespace, createPattern, createProcessingInstruction, createProcessingInstruction, createQName, createQName, createQName, createQName, createQNameCache, createSingleton, createText, createXPath, createXPath, createXPathFilter, createXPathFilter, getQNames, getXPathNamespaceURIs, init, intern, setXPathNamespaceURIs
-
Field Details
-
singleton
The Singleton instance
-
-
Constructor Details
-
NonLazyDocumentFactory
public NonLazyDocumentFactory()
-
-
Method Details
-
getInstance
Access to the singleton instance of this factory.
- Returns:
- the default singleon instance
-
createElement
- Overrides:
createElement
in classDocumentFactory
-