public interface IPoolObjectFactory
Modifier and Type | Method and Description |
---|---|
void |
activateObject(java.lang.Object obj)
Activate the object before checkout from pool.
|
java.lang.Object |
createObject()
Create the new object.
|
void |
deactivateObject(java.lang.Object obj)
Deactivate object before checkin to pool.
|
void |
destroyObject(java.lang.Object obj)
Destroy the object.
|
java.lang.Object createObject() throws java.lang.Exception
java.lang.Exception
void destroyObject(java.lang.Object obj) throws java.lang.Exception
obj
- The object to be destroyed.java.lang.Exception
void activateObject(java.lang.Object obj) throws java.lang.Exception
obj
- The object to be activated.java.lang.Exception
void deactivateObject(java.lang.Object obj) throws java.lang.Exception
obj
- The object to be deeactivated.java.lang.Exception