public class JRClonePool extends java.lang.Object
|Modifier and Type||Field and Description|
|Constructor and Description|
Creates a clone pool.
|Modifier and Type||Method and Description|
Retrieves a clone from the pool.
Release the clone back to the pool.
public static final java.lang.String EXCEPTION_MESSAGE_KEY_PARAMETER_NOT_FOUND
public JRClonePool(JRFillCloneable original, boolean trackLockedClones, boolean useOriginal)
original- the original element that will be cloned
trackLockedClones- 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 clone
public 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 - 2018 TIBCO Software Inc. www.jaspersoft.com