Top Description Fields Constructors Methods
org.dom4j.util

public Class NonLazyDocumentFactory

extends DocumentFactory
Class Inheritance
Imports
org.dom4j.DocumentFactory, .Element, .QName

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.

Author
James Strachan
Version
$Revision: 1.9 $

Field Summary

Modifier and TypeField and Description
protected static transient NonLazyDocumentFactory
singleton

Hides org.dom4j.DocumentFactory.singleton.

The Singleton instance
Inherited from org.dom4j.DocumentFactory:
cache

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Element
public static DocumentFactory

Returns:

the default singleon instance
getInstance
()

Hides org.dom4j.DocumentFactory.getInstance.

Access to the singleton instance of this factory.

Inherited from org.dom4j.DocumentFactory:
createAttributecreateAttributecreateCDATAcreateCommentcreateDocTypecreateDocumentcreateDocumentcreateDocumentcreateElementcreateElementcreateEntitycreateNamespacecreatePatterncreateProcessingInstructioncreateProcessingInstructioncreateQNamecreateQNamecreateQNamecreateQNamecreateQNameCachecreateSingletoncreateTextcreateXPathcreateXPathcreateXPathFiltercreateXPathFiltergetQNamesgetXPathNamespaceURIsinitinternsetXPathNamespaceURIs

Field Detail

singletonback to summary
protected static transient NonLazyDocumentFactory singleton

Hides org.dom4j.DocumentFactory.singleton.

The Singleton instance

Constructor Detail

NonLazyDocumentFactoryback to summary
public NonLazyDocumentFactory()

Method Detail

createElementback to summary
public Element createElement(QName qname)

Overrides org.dom4j.DocumentFactory.createElement.

getInstanceback to summary
public static DocumentFactory getInstance()

Hides org.dom4j.DocumentFactory.getInstance.

Access to the singleton instance of this factory.

Returns:DocumentFactory

the default singleon instance