|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
If an object to be pooled can't be constructed directly by invoking a constructor, a Factory can be provided to do the construction job.
| Method Summary | |
java.lang.Object |
create()
This method is invoked by the pool when a pooled instance has to be created. |
void |
destroy(java.lang.Object obj)
This method is invoked by the pool when a pooled instance has to be destroyed. |
java.lang.Class |
getProducedClass()
This method is invoked when validating the created class. |
| Method Detail |
public java.lang.Object create()
throws ObjectPool.ObjectPoolException
ObjectPoolException - if there is a problem creating the object
ObjectPool.ObjectPoolException
public void destroy(java.lang.Object obj)
throws ObjectPool.ObjectPoolException
obj - the object to destroy
ObjectPoolException - if there is a problem destroying the object
ObjectPool.ObjectPoolExceptionpublic java.lang.Class getProducedClass()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||