org.dom4j.util

Class NonLazyDocumentFactory

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.

Version: $Revision: 1.9 $

Author: James Strachan

Field Summary
protected static NonLazyDocumentFactorysingleton
The Singleton instance
Method Summary
ElementcreateElement(QName qname)
static DocumentFactorygetInstance()

Access to the singleton instance of this factory.

Field Detail

singleton

protected static transient NonLazyDocumentFactory singleton
The Singleton instance

Method Detail

createElement

public Element createElement(QName qname)

getInstance

public static DocumentFactory getInstance()

Access to the singleton instance of this factory.

Returns: the default singleon instance

Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge