|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ebmwebsourcing.easycommons.xml.Transformers
public final class Transformers
A static pool of Transformer to improve Transformer creation efficiency.
A Transformer is initialized the first time this class is used.
An infinite number (integer maximum value) of Transformer may be created. They are never evicted.
| Constructor Summary | |
|---|---|
Transformers()
|
|
| Method Summary | |
|---|---|
static void |
releaseTransformer(javax.xml.transform.Transformer transformer)
Release a Transformer to the pool |
static javax.xml.transform.Transformer |
takeTransformer()
Take a Transformer from the pool |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Transformers()
| Method Detail |
|---|
public static final javax.xml.transform.Transformer takeTransformer()
throws PoolException
Transformer from the pool
Transformer
PoolException - if the current thread waits for a Transformer
of the pool and is interruptedpublic static final void releaseTransformer(javax.xml.transform.Transformer transformer)
Transformer to the pool
transformer - a Transformer to release
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||