|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PoolableObject
Pooled Objects that need to be initialized or cleaned up when entering/leaving the pool should implement this interface. The default pool implementation checks if the object being pooled implements this interface. If it does then it will call the init method when returning the object from ObjectPool.getObject and it will called gthe returned method when the ObjectPool.returnObject is called.
Objects that implement java.util.Collection are automatically cleared when returned to a default object pool.
Method Summary | |
---|---|
void |
init()
This is called when the object is about to be reused from the pool. |
void |
returned()
This is called when the object is returned to the pool. |
Method Detail |
---|
void init()
void returned()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |