|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This is supposed to represent a generic Pooling interface. It can be
implemented in any way that the implementor sees fit, but the intent sould
always be kept in mind. The premise of pooling supposes that creating
new instances of objects is relatively expensive and that having a pool of
unused objects would save the costs of instantiation for frequently
instantiated objects.
| Method Summary | |
void |
checkIn(Object returnedObject)
This method is designed so that implementing subclasses will have a generic way to accept now-unused objects from the user. |
Object |
checkOut()
This method should return an instance of the class that this pool is responsible for spawning. |
Class |
getPoolClass()
This method will return the class of the objects that this pool will generate. |
| Method Detail |
public Class getPoolClass()
public Object checkOut()
public void checkIn(Object returnedObject)
returnedObject - The object to be checked back in.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||