|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceAdapter
The ResourceAdapter is responsible for communicating to the physical resource. This would include creating a new physical resource instance or closing a resource.
Method Summary | |
---|---|
void |
closePhyicalResourceObject(Resource resource)
Called to have the adpater have the resource object close itself. |
java.lang.Object |
createPhysicalResourceObject(ResourceDescriptor descriptor)
Creates a specific resource based on the descriptor. |
Resource |
createResource(java.lang.Object physicalResource)
Creates the Resource specific wrapper that will contain
the physicalResource. |
Method Detail |
---|
Resource createResource(java.lang.Object physicalResource) throws ResourcePoolException
Resource
specific wrapper that will contain
the physicalResource.
physicalResource
- that will be contained in the wrapper
ResourcePoolException
- if an error occurs wrapping the physical resourcejava.lang.Object createPhysicalResourceObject(ResourceDescriptor descriptor) throws ResourcePoolException
ResourcePoolException
- if an error occurs creating the resourcevoid closePhyicalResourceObject(Resource resource) throws ResourcePoolException
ResourcePoolException
- if an error occurs closing resource object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |