org.apache.ws.resource
Interface ResourceIdentifier
- All Superinterfaces:
- Resource
- All Known Subinterfaces:
- PersistentResource
- public interface ResourceIdentifier
- extends Resource
This interface is used to retrieve a unique id of the resource. It must be implemented by all non-singleton
resources.
- Author:
- Ian P. Springer
Method Summary |
java.lang.Object |
getID()
Returns the unique id of the resource. |
void |
setID(java.lang.Object id)
|
setID
public void setID(java.lang.Object id)
- Parameters:
id
-
- Throws:
java.lang.IllegalArgumentException
- if the specified ID is not the of the correct type for this resource
java.lang.IllegalStateException
- if this resource's ID has already been set
getID
public java.lang.Object getID()
- Returns the unique id of the resource. In most cases, this value should match value returned by
ResourceKey.getValue()
.
- Returns:
- the id of the resource.
Copyright © 2004 Apache Software Foundation. All Rights Reserved.