public class NonLazyDocumentFactory extends DocumentFactory
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.
Modifier and Type | Field and Description |
---|---|
(package private) static NonLazyDocumentFactory |
singleton
The Singleton instance
|
cache
Constructor and Description |
---|
NonLazyDocumentFactory() |
Modifier and Type | Method and Description |
---|---|
Element |
createElement(QName qname) |
static DocumentFactory |
getInstance()
Access to the singleton instance of this factory.
|
createAttribute, createAttribute, createCDATA, createComment, createDocType, 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
static transient NonLazyDocumentFactory singleton
public NonLazyDocumentFactory()
public static DocumentFactory getInstance()
Access to the singleton instance of this factory.
public Element createElement(QName qname)
createElement
in class DocumentFactory
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses