|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceFactory
ResourceFactory must be implemented by users of ResourcePool. The pool delegates the task of creating and freeing resources to the Factory, making the pool generic
| Method Summary | |
|---|---|
java.lang.Object |
createResource()
Must create a new resource and return it |
void |
freeResource(java.lang.Object resource)
Must free the resource since it will not be used anymore |
| Method Detail |
|---|
java.lang.Object createResource()
throws java.lang.Exception
java.lang.Exception
void freeResource(java.lang.Object resource)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||