|
Oracle Application Server Java Object Cache API Reference 10g Release 2 (10.1.2) B14018-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PoolInstanceFactory is an interface for generating and destroying the instances of objects in a pool. Two methods are defined, one for creating objects in a pool the other for destroying them. An object implementing this interface is passed as a parameter of the PoolAccess.createPool method. The createInstance method is called to created the instances in the pool, the destroyInstance method is called for each instance in the pool, when the instance is destroyed.
Method Summary | |
java.lang.Object |
createInstance() CreateInstance creates an instance of the object to be pooled. |
void |
destroyInstance(java.lang.Object obj) DestroyInstance is called when a pooled object is being removed from the pool. |
Method Detail |
public java.lang.Object createInstance()
CacheAccess.createPool
public void destroyInstance(java.lang.Object obj)
obj
- the object instance which is being removed from the poolCacheAccess.createPool
|
Oracle Application Server Java Object Cache API Reference 10g Release 2 (10.1.2) B14018-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |