|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PoolMatchFactory
The interface PoolMatchFactory defines the object used by a Pool to test if a given resource of a Pool matches with the hints passed with the Pool getResource method. It also allows such a Pool to allocate a Object as needed, conforming to the passed hints.
| Method Summary | |
|---|---|
Object |
createResource(Object hints)
createResource creates a new Object. |
boolean |
matchResource(Object pr,
Object hints)
matchResource tests if a given resource of a Pool matches with the hints passed with the Pool getResource method. |
Object |
matchResource(Set res,
Object hints)
matchResource tests if a given resource of a Pool matches with the hints passed with the Pool getResource method. |
void |
releaseResource(Object pr)
releaseResource make sure that any cleanup needed for this entry is done |
void |
validateResource(Set res)
validateResource tests if a given resource of a Pool is invalid |
| Method Detail |
|---|
Object createResource(Object hints)
throws Exception
hints - The "properties" that the created Object should
conform to.
Exception - if an error occurs
boolean matchResource(Object pr,
Object hints)
pr - The Object to test its matching with some
"properties" specified by hints.hints - The "properties" that the Object specified by pr
should match.
Object matchResource(Set res,
Object hints)
throws Exception
res - A set of Objects to test if matching with some
"properties" specified by hints.hints - The "properties" that the Object specified by pr
should match.
Exception - Description of Exception
void releaseResource(Object pr)
throws Exception
pr - The Object to release
Exception - Description of Exception
void validateResource(Set res)
throws Exception
res - A set of Objects to test if matching with some
"properties" specified by hints.
Exception - Description of Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||