Package de.intarsys.tools.pool
Interface IPoolObjectFactory
-
public interface IPoolObjectFactoryA 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 voidactivateObject(java.lang.Object obj)Activate the object before checkout from pool.java.lang.ObjectcreateObject()Create the new object.voiddeactivateObject(java.lang.Object obj)Deactivate object before checkin to pool.voiddestroyObject(java.lang.Object obj)Destroy the object.
-
-
-
Method Detail
-
createObject
java.lang.Object createObject() throws java.lang.ExceptionCreate the new object.- Returns:
- The new object
- Throws:
java.lang.Exception
-
destroyObject
void destroyObject(java.lang.Object obj) throws java.lang.ExceptionDestroy the object.- Parameters:
obj- The object to be destroyed.- Throws:
java.lang.Exception
-
activateObject
void activateObject(java.lang.Object obj) throws java.lang.ExceptionActivate 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.ExceptionDeactivate object before checkin to pool.- Parameters:
obj- The object to be deeactivated.- Throws:
java.lang.Exception
-
-