org.exist.dom
Class NodeObjectPool

java.lang.Object
  extended byStackKeyedObjectPool
      extended byorg.exist.dom.NodeObjectPool

public class NodeObjectPool
extends StackKeyedObjectPool

An object pool for reusable node objects. Usually, node objects are only held in memory for a short time. By reusing these objects, we can save many object creations.

Author:
wolf
See Also:
Serialized Form

Constructor Summary
NodeObjectPool()
           
 
Method Summary
 NodeImpl borrowNode(java.lang.Class clazz)
           
static NodeObjectPool getInstance()
           
 void returnNode(NodeImpl node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeObjectPool

public NodeObjectPool()
Method Detail

getInstance

public static final NodeObjectPool getInstance()

borrowNode

public NodeImpl borrowNode(java.lang.Class clazz)

returnNode

public void returnNode(NodeImpl node)


<oXygen/> XML Editor provides support for editing and debugging XQuery expressions against the eXist XML Database.