com.ibm.xdms.utils
Class XMLUtilsPool

java.lang.Object
  extended by com.ibm.xdms.utils.ObjectPool
      extended by com.ibm.xdms.utils.XMLUtilsPool

public class XMLUtilsPool
extends ObjectPool

Used to store a pool of XMLUtils objects


Nested Class Summary
protected  class XMLUtilsPool.XMLUtilsFactory
          An internal XMLUtilsFactory
 
Field Summary
protected  com.ibm.xcap.xml.XMLUtils template
          An XMLUtils template used for cloning *
protected static XMLUtilsPool xmlUtilsPool
          A singleton *
 
Fields inherited from class com.ibm.xdms.utils.ObjectPool
lock, maxSize, minSize, objectFactory, pool
 
Constructor Summary
XMLUtilsPool(com.ibm.xcap.xml.XMLUtils template)
          Constructs a
 
Method Summary
 com.ibm.xcap.xml.XMLUtils checkout()
          Checkout an object from the pool.
static XMLUtilsPool getSingleton()
          Returns the singletone pool for XMLUtils *
static void init(ResourceContext context)
          Initialize the singleton with a template XMLUtils for cloning in the pool *
 
Methods inherited from class com.ibm.xdms.utils.ObjectPool
checkin, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

template

protected com.ibm.xcap.xml.XMLUtils template
An XMLUtils template used for cloning *


xmlUtilsPool

protected static XMLUtilsPool xmlUtilsPool
A singleton *

Constructor Detail

XMLUtilsPool

public XMLUtilsPool(com.ibm.xcap.xml.XMLUtils template)
Constructs a

Parameters:
template - An XMLUtils template used for cloning
Method Detail

getSingleton

public static XMLUtilsPool getSingleton()
Returns the singletone pool for XMLUtils *


init

public static void init(ResourceContext context)
                 throws XdmsException
Initialize the singleton with a template XMLUtils for cloning in the pool *

Throws:
XdmsException

checkout

public com.ibm.xcap.xml.XMLUtils checkout()
Description copied from class: ObjectPool
Checkout an object from the pool. Remember to check the object back into the pool when done.

Overrides:
checkout in class ObjectPool
Returns:
Returns an object.