Package de.intarsys.tools.pool
Interface IPoolObjectFactory
-
public interface IPoolObjectFactory
A factory for the lifecycle management of objects in a generic pool implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
createObject
java.lang.Object createObject() throws java.lang.Exception
Create the new object.- Returns:
- The new object
- Throws:
java.lang.Exception
-
destroyObject
void destroyObject(java.lang.Object obj) throws java.lang.Exception
Destroy the object.- Parameters:
obj
- The object to be destroyed.- Throws:
java.lang.Exception
-
activateObject
void activateObject(java.lang.Object obj) throws java.lang.Exception
Activate the object before checkout from pool.- Parameters:
obj
- The object to be activated.- Throws:
java.lang.Exception
-
deactivateObject
void deactivateObject(java.lang.Object obj) throws java.lang.Exception
Deactivate object before checkin to pool.- Parameters:
obj
- The object to be deeactivated.- Throws:
java.lang.Exception
-
-