|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.fill.JRClonePool
public class JRClonePool
Working clones pooling utility used at fill time.
Constructor Summary | |
---|---|
JRClonePool(JRFillCloneable original,
boolean trackLockedClones,
boolean useOriginal)
Creates a clone pool. |
Method Summary | |
---|---|
java.lang.Object |
getClone()
Retrieves a clone from the pool. |
void |
releaseClone(java.lang.Object clone)
Release the clone back to the pool. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 cloneMethod Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |