|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.component.framework.util.JVMDocumentBuilders
public final class JVMDocumentBuilders
A static pool of JVM DocumentBuilder to improve JVM DocumentBuilder creation efficiency.
A JVM DocumentBuilder is initialized the first time this class is used.
An infinite number (integer maximum value) of JVM DocumentBuilder may be created. They are never evicted.
| Constructor Summary | |
|---|---|
JVMDocumentBuilders()
|
|
| Method Summary | |
|---|---|
static org.w3c.dom.Document |
newDocument()
Create a new Document (with a JVM DocumentBuilder of the
pool) |
static void |
releaseJVMDocumentBuilder(javax.xml.parsers.DocumentBuilder jvmDocumentBuilder)
Release a JVM DocumentBuilder to the pool |
static javax.xml.parsers.DocumentBuilder |
takeJVMDocumentBuilder()
Take a JVM DocumentBuilder from the pool |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JVMDocumentBuilders()
| Method Detail |
|---|
public static final javax.xml.parsers.DocumentBuilder takeJVMDocumentBuilder()
throws com.ebmwebsourcing.easycommons.pooling.PoolException
DocumentBuilder from the pool
DocumentBuilder
com.ebmwebsourcing.easycommons.pooling.PoolException - if the current thread waits for a JVM DocumentBuilder
of the pool and is interruptedpublic static final void releaseJVMDocumentBuilder(javax.xml.parsers.DocumentBuilder jvmDocumentBuilder)
DocumentBuilder to the pool
jvmDocumentBuilder - a JVM DocumentBuilder to releasepublic static final org.w3c.dom.Document newDocument()
Document (with a JVM DocumentBuilder of the
pool)
Document
com.ebmwebsourcing.easycommons.pooling.PoolException - if the current thread waits for a JVM DocumentBuilder
of the pool and is interrupted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||