com.ebmwebsourcing.easycommons.xml
Class Transformers
java.lang.Object
com.ebmwebsourcing.easycommons.xml.Transformers
public final class Transformers
- extends Object
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.
- Author:
- Nicolas Oddoux - EBM WebSourcing
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Transformers
public Transformers()
takeTransformer
public static final Transformer takeTransformer()
throws PoolException
- Take a
Transformer from the pool
- Returns:
- one
Transformer
- Throws:
PoolException - if the current thread waits for a Transformer
of the pool and is interrupted
releaseTransformer
public static final void releaseTransformer(Transformer transformer)
- Release a
Transformer to the pool
- Parameters:
transformer - a Transformer to release
Copyright © 2012 Petals Link. All Rights Reserved.