| org.ow2.easybeans.pool.PoolFactory
PoolFactory | public interface PoolFactory (Code) | | Allows to call specific methods for each implementation of the pool for each lifecycle on an object.
< Parameters: InstanceType - > the type of the object that are managed by the pool(could be EasyBeansSLSB, etc.)< Parameters: Clue - > a clue which is given to match an instance in the pool author: Florent Benoitt |
Method Summary | |
InstanceType | create(Clue clue) Creates an instance with the given hint.
Parameters: clue - a clue given by the Pool. | boolean | isMatching(InstanceType object, Clue clue) Checks if the given object with the given clue is matching.
Parameters: object - given object against which the check should be done. Parameters: clue - the object used as clue to check the matching. | void | remove(InstanceType object) Callback called when object is gonna be removed. | boolean | validate(InstanceType object, PoolEntryStatistics stats) Validate an instance by giving some statistics.
Parameters: object - the instance to validate Parameters: stats - some statistics to help in the validating process. |
create | InstanceType create(Clue clue) throws PoolException(Code) | | Creates an instance with the given hint.
Parameters: clue - a clue given by the Pool. Could be null. throws: PoolException - if instance cannot be created. the created instance. |
isMatching | boolean isMatching(InstanceType object, Clue clue)(Code) | | Checks if the given object with the given clue is matching.
Parameters: object - given object against which the check should be done. Parameters: clue - the object used as clue to check the matching. true if it is matching, else false. |
remove | void remove(InstanceType object)(Code) | | Callback called when object is gonna be removed.
Parameters: object - that is being removed from the pool. |
validate | boolean validate(InstanceType object, PoolEntryStatistics stats)(Code) | | Validate an instance by giving some statistics.
Parameters: object - the instance to validate Parameters: stats - some statistics to help in the validating process. true if the element is valid, else false. |
|
|