|
||||||||||
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. |
ValidatingManagedConnectionFactory |
getValidatingMCFactory()
|
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 |
Method Detail |
---|
Object createResource(Object hints) throws Exception
hints
- The "properties" that the created Object should
conform to.
Exception
- if an error occursboolean 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 Exceptionvoid releaseResource(Object pr) throws Exception
pr
- The Object to release
Exception
- Description of ExceptionValidatingManagedConnectionFactory getValidatingMCFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |