org.apache.muse.core.routing
Interface ResourceIdFactory

All Known Implementing Classes:
CounterResourceIdFactory, OSGiResourceIdFactory, RandomResourceIdFactory

public interface ResourceIdFactory

ResourceIdFactory is an interface for classes that provide a name-value pair that is inserted into a WS-Addressing endpoint reference's set of properties in order to distinguish it from other EPRs that target the same endpoint (the implied resource pattern). The resource creation process uses instances of this interface to provide the resource with a unique EPR. You can set which ResourceIdFactory is used for a resource type using the java-id-factory-class element in muse.xml.

Author:
Dan Jemiolo (danj)

Method Summary
 QName getIdentifierName()
           
 String getNextIdentifier()
           
 

Method Detail

getIdentifierName

QName getIdentifierName()
Returns:
The name of the WS-A reference property to be added to the resource's EPR for identification.

getNextIdentifier

String getNextIdentifier()
Returns:
A unique value that has not been used for other manageable resources.


Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.