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
Modifier and TypeMethodDescriptionvoid
activateObject
(Object obj) Activate the object before checkout from pool.Create the new object.void
deactivateObject
(Object obj) Deactivate object before checkin to pool.void
destroyObject
(Object obj) Destroy the object.
-
Method Details
-
createObject
Create the new object.- Returns:
- The new object
- Throws:
Exception
-
destroyObject
Destroy the object.- Parameters:
obj
- The object to be destroyed.- Throws:
Exception
-
activateObject
Activate the object before checkout from pool.- Parameters:
obj
- The object to be activated.- Throws:
Exception
-
deactivateObject
Deactivate object before checkin to pool.- Parameters:
obj
- The object to be deeactivated.- Throws:
Exception
-