|
|||||||||
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 poolpublic interface PoolFactory<InstanceType,Clue>
Allows to call specific methods for each implementation of the pool for each lifecycle on an object.
Method Summary | |
---|---|
InstanceType |
create(Clue clue)
Creates an instance with the given hint. |
boolean |
isMatching(InstanceType object,
Clue clue)
Checks if the given object with the given clue is 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. |
Method Detail |
---|
InstanceType create(Clue clue) throws PoolException
clue
- a clue given by the Pool. Could be null.
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.
boolean validate(InstanceType object, PoolEntryStatistics stats)
object
- the instance to validatestats
- some statistics to help in the validating process.
void remove(InstanceType object)
object
- that is being removed from the pool.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |