|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
InstanceType - the type of the object that are managed by the pool
(could be EasyBeansSLSB, etc.)Clue - a clue which is given to match an instance in the pool
@Deprecated public interface PoolFactory<InstanceType,Clue>
Allows to call specific methods for each implementation of the pool for each lifecycle on an object.
| Method Summary | |
|---|---|
void |
activate(InstanceType object,
Clue clue)
Deprecated. This method is called just before an instance is getted. |
InstanceType |
create(Clue clue)
Deprecated. Creates an instance with the given hint. |
boolean |
isMatching(InstanceType object,
Clue clue)
Deprecated. Checks if the given object with the given clue is matching. |
void |
passivate(InstanceType object)
Deprecated. This method is called while an instance is put in pool. |
void |
remove(InstanceType object)
Deprecated. Callback called when object is gonna be removed. |
void |
setClue(InstanceType object,
Clue clue)
Deprecated. Change item clue. |
boolean |
validate(InstanceType instance)
Deprecated. Validate an instance by giving some statistics. |
| Method Detail |
|---|
InstanceType create(Clue clue)
throws org.ow2.util.pool.api.PoolException
clue - always null with this implementation.
org.ow2.util.pool.api.PoolException - if instance cannot be created.
boolean isMatching(InstanceType object,
Clue clue)
object - given object against which the check should be done.clue - the object used as clue to check the matching.
void setClue(InstanceType object,
Clue clue)
object - given object against which the check should be done.clue - the object used as clue to check the matching.void remove(InstanceType object)
object - that is being removed from the pool.
void activate(InstanceType object,
Clue clue)
object - the pool item which will become busyclue - the clue used to get this instancevoid passivate(InstanceType object)
object - the pool item which will become availableboolean validate(InstanceType instance)
instance - the instance to validate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||