|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.wsrf.impl.SingletonResourceHome
A ResourceHome that always returns a single resource object.
| Field Summary | |
private Resource |
singleResource
The resource object that we will return. |
| Constructor Summary | |
SingletonResourceHome()
|
|
| Method Summary | |
Resource |
find(ResourceKey key)
Retrives a resource. |
protected abstract Resource |
findSingleton()
Finds the single resource to be associated with this resource home. |
java.lang.Class |
getKeyTypeClass()
The resource key type. |
javax.xml.namespace.QName |
getKeyTypeName()
The name of the resource key. |
void |
remove(ResourceKey key)
Always throws as an exception - not permitted to remove any key. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private Resource singleResource
| Constructor Detail |
public SingletonResourceHome()
| Method Detail |
public java.lang.Class getKeyTypeClass()
ResourceHomeResourceKey used or
passed to this ResourceHome must have match this type
(corresponds to ResourceKey.getValue()).
getKeyTypeClass in interface ResourceHomepublic javax.xml.namespace.QName getKeyTypeName()
ResourceHomeResourceKey used or
passed to this ResourceHome must have match this name
(corresponds to ResourceKey.getName()).
getKeyTypeName in interface ResourceHome
public Resource find(ResourceKey key)
throws ResourceException
ResourceHome
find in interface ResourceHomeResourceException - if any other error occurs.
public void remove(ResourceKey key)
throws ResourceException
remove in interface ResourceHomeResourceException - if any other error occurs.
protected abstract Resource findSingleton()
throws ResourceException
NoSuchResourceException
will be raised. findSingleton to create a new resource
object without needing to track whether it has been called previously.
ResourceException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||