|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.turbine.util.pool.RecyclableSupport
A support class for recyclable objects implementing default methods.
Field Summary | |
private boolean |
disposed
The disposed flag. |
Constructor Summary | |
RecyclableSupport()
|
Method Summary | |
void |
dispose()
Disposes the object by setting its disposed flag. |
protected boolean |
doDispose()
A convenience method allowing a clever recyclable object to put itself into a pool for recycling. |
boolean |
isDisposed()
Checks whether the object is disposed. |
void |
Recyclable()
Constructs a new recyclable support and calls the default recycle method. |
void |
recycle()
Recycles the object by removing its disposed flag. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private boolean disposed
Constructor Detail |
public RecyclableSupport()
Method Detail |
public void Recyclable()
public void recycle()
recycle
in interface Recyclable
public void dispose()
dispose
in interface Recyclable
public boolean isDisposed()
isDisposed
in interface Recyclable
protected boolean doDispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |