|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Defines a basic interface through which resources are discovered, and
removed. The purpose of ResourceHome is to interact
with a collection of resources of the same type. Each resource type will
have its own custom implementation the ResourceHome interface.
The implementation is expected to provide custom methods for creating
new resources and optionally methods that act on a set of resource objects.
| Method Summary | |
Resource |
find(ResourceKey key)
Retrives a resource. |
java.lang.Class |
getKeyTypeClass()
The resource key type. |
javax.xml.namespace.QName |
getKeyTypeName()
The name of the resource key. |
void |
remove(ResourceKey key)
Removes a resource. |
| Method Detail |
public java.lang.Class getKeyTypeClass()
ResourceKey used or
passed to this ResourceHome must have match this type
(corresponds to ResourceKey.getValue()).
public javax.xml.namespace.QName getKeyTypeName()
ResourceKey used or
passed to this ResourceHome must have match this name
(corresponds to ResourceKey.getName()).
public Resource find(ResourceKey key)
throws ResourceException,
NoSuchResourceException,
InvalidResourceKeyException
NoSuchResourceException - if no resource exists with the given key
InvalidResourceKeyException - if the resource key is invalid.
ResourceException - if any other error occurs.
public void remove(ResourceKey key)
throws ResourceException,
NoSuchResourceException,
InvalidResourceKeyException,
RemoveNotSupportedException
RemoveCallback
interface, the implementation must invoke this the remove operation
on the resource.
NoSuchResourceException - if no resource exists with the given key
InvalidResourceKeyException - if the resource key is invalid.
RemoveNotSupportedException - if remove operation is not
supported.
ResourceException - if any other error occurs.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||