|
||||||||||
| 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 | |
|---|---|
java.lang.Object |
createResource(java.lang.Object hints)
createResource creates a new Object. |
javax.resource.spi.ValidatingManagedConnectionFactory |
getValidatingMCFactory()
|
boolean |
matchResource(java.lang.Object pr,
java.lang.Object hints)
matchResource tests if a given resource of a Pool matches with the hints passed with the Pool getResource method. |
java.lang.Object |
matchResource(java.util.Set res,
java.lang.Object hints)
matchResource tests if a given resource of a Pool matches with the hints passed with the Pool getResource method. |
void |
releaseResource(java.lang.Object pr)
releaseResource make sure that any cleanup needed for this entry is done |
| Method Detail |
|---|
java.lang.Object createResource(java.lang.Object hints)
throws java.lang.Exception
hints - The "properties" that the created Object should
conform to.
java.lang.Exception - if an error occurs
boolean matchResource(java.lang.Object pr,
java.lang.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.
java.lang.Object matchResource(java.util.Set res,
java.lang.Object hints)
throws java.lang.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.
java.lang.Exception - Description of Exception
void releaseResource(java.lang.Object pr)
throws java.lang.Exception
pr - The Object to release
java.lang.Exception - Description of Exceptionjavax.resource.spi.ValidatingManagedConnectionFactory getValidatingMCFactory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||