| org.objectweb.jonas.resource.pool.api.PoolMatchFactory
All known Subclasses: org.objectweb.jonas.resource.ConnectionManagerImpl,
PoolMatchFactory | public interface PoolMatchFactory (Code) | | 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.
Parameters: hints - The "properties" that the created Object shouldconform to. | 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.
Parameters: pr - The Object to test its matching with some"properties" specified by hints. Parameters: hints - The "properties" that the Object specified by prshould match. | 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.
Parameters: res - A set of Objects to test if matching with some"properties" specified by hints. Parameters: hints - The "properties" that the Object specified by prshould match. | void | releaseResource(Object pr) | void | validateResource(Set res) |
createResource | Object createResource(Object hints) throws Exception(Code) | | createResource creates a new Object.
Parameters: hints - The "properties" that the created Object shouldconform to. The created Object. throws: Exception - if an error occurs |
matchResource | boolean matchResource(Object pr, Object hints)(Code) | | matchResource tests if a given resource of a Pool matches with
the hints passed with the Pool getResource method.
Parameters: pr - The Object to test its matching with some"properties" specified by hints. Parameters: hints - The "properties" that the Object specified by prshould match. true if the pr Object matches the hints"properties". |
matchResource | Object matchResource(Set res, Object hints) throws Exception(Code) | | matchResource tests if a given resource of a Pool matches with
the hints passed with the Pool getResource method.
Parameters: res - A set of Objects to test if matching with some"properties" specified by hints. Parameters: hints - The "properties" that the Object specified by prshould match. Object that matches the hints "properties".or null if no match. exception: Exception - Description of Exception |
releaseResource | void releaseResource(Object pr) throws Exception(Code) | | releaseResource make sure that any cleanup needed for this entry is done
Parameters: pr - The Object to release exception: Exception - Description of Exception |
validateResource | void validateResource(Set res) throws Exception(Code) | | validateResource tests if a given resource of a Pool is invalid
Parameters: res - A set of Objects to test if matching with some"properties" specified by hints. exception: Exception - Description of Exception |
|
|