| java.lang.Object net.sf.jasperreports.engine.fill.JRClonePool
JRClonePool | public class JRClonePool (Code) | | Working clones pooling utility used at fill time.
author: Lucian Chirita (lucianc@users.sourceforge.net) version: $Id: JRClonePool.java 1229 2006-04-19 10:27:35Z teodord $ |
Constructor Summary | |
public | JRClonePool(JRCloneable original, boolean trackLockedClones, boolean useOriginal) Creates a clone pool. |
JRClonePool | public JRClonePool(JRCloneable original, boolean trackLockedClones, boolean useOriginal)(Code) | | Creates a clone pool.
Parameters: original - the original element that will be cloned Parameters: trackLockedClones - whether to track clones retrieved from the poolIf set, the pool will keep a set of in-use clones and the caller will alwayshave to release the clones back to the pool. Parameters: useOriginal - whether the original object can be used as a working clone |
getClone | public Object getClone()(Code) | | Retrieves a clone from the pool.
The clone is reserved to the caller who will need to call
JRClonePool.releaseClone(Object) releaseClone(Object) to release it back to the pool.
a clone of the original object |
releaseClone | public void releaseClone(Object clone)(Code) | | Release the clone back to the pool.
The clone will be available for other clients.
Parameters: clone - the clone to be released |
|
|