|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceFactory<K,V>
Basic interface for poolable Object Factory
| Method Summary | |
|---|---|
void |
close()
|
V |
create(K key)
Create the given resource for the key. |
void |
destroy(K key,
V obj)
Destroy the given resource. |
boolean |
validate(K key,
V value)
Check that the given resource is valid. |
| Method Detail |
|---|
V create(K key)
throws java.lang.Exception
key - The key
java.lang.Exception
void destroy(K key,
V obj)
throws java.lang.Exception
key - The key of the resourceobj - The resource
java.lang.Exception
boolean validate(K key,
V value)
key - The key of the resourcevalue - The resource
void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||