|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Type
- -
the type to be createdpublic interface PoolObjectFactory<Type>
This interface enables Pool
users to
build a custom creation and destroy mechanismn for pooled objects.
Implementations can use standart creation to prevent the pool from using
reflection to create objects of the specific type. This implementation
seperates the Pool implementation from the creation or the destruction of a
pooled type.
The destroy method can be used to close datasource connections or release resources if the object will be removed from the pool
Pool
Method Summary | |
---|---|
void |
destroyInstance(Type type)
destroys the given instance |
Type |
getInstance()
|
Method Detail |
---|
Type getInstance()
void destroyInstance(Type type)
type
- - the object to destroy / release all resources
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |