intarsys runtime library

de.intarsys.tools.pool
Interface IPoolObjectFactory


public interface IPoolObjectFactory

A factory for the lifecycle management of objects in a generic pool implementation.


Method Summary
 void activateObject(Object obj)
          Activate the object before checkout from pool.
 Object createObject()
          Create the new object.
 void deactivateObject(Object obj)
          Deactivate object before checkin to pool.
 void destroyObject(Object obj)
          Destroy the object.
 

Method Detail

createObject

Object createObject()
                    throws Exception
Create the new object.

Returns:
The new object
Throws:
Exception

destroyObject

void destroyObject(Object obj)
                   throws Exception
Destroy the object.

Parameters:
obj - The object to be destroyed.
Throws:
Exception

activateObject

void activateObject(Object obj)
                    throws Exception
Activate the object before checkout from pool.

Parameters:
obj - The object to be activated.
Throws:
Exception

deactivateObject

void deactivateObject(Object obj)
                      throws Exception
Deactivate object before checkin to pool.

Parameters:
obj - The object to be deeactivated.
Throws:
Exception

intarsys runtime library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.