net.sf.jasperreports.engine.fill
public class JRClonePool extends java.lang.Object
Constructor and Description |
---|
JRClonePool(JRFillCloneable original,
boolean trackLockedClones,
boolean useOriginal)
Creates a clone pool.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getClone()
Retrieves a clone from the pool.
|
void |
releaseClone(java.lang.Object clone)
Release the clone back to the pool.
|
public JRClonePool(JRFillCloneable original, boolean trackLockedClones, boolean useOriginal)
original
- the original element that will be clonedtrackLockedClones
- whether to track clones retrieved from the pool
If set, the pool will keep a set of in-use clones and the caller will always have to release the clones back to the pool.
useOriginal
- whether the original object can be used as a working clonepublic java.lang.Object getClone()
The clone is reserved to the caller who will need to call
releaseClone(Object)
to release it back to the pool.
public void releaseClone(java.lang.Object clone)
clone
- the clone to be released© 2001-2010 Jaspersoft Corporation www.jaspersoft.com