org.apache.muse.core.routing
Class CounterResourceIdFactory

java.lang.Object
  extended by org.apache.muse.core.routing.CounterResourceIdFactory
All Implemented Interfaces:
ResourceIdFactory

public class CounterResourceIdFactory
extends Object
implements ResourceIdFactory

This ResourceIdFactory creates IDs of the form "MuseResource-N", where N is a monotonically increasing integer greater than zero. The QName of the identifier is specified in WsaUtils.DEFAULT_RESOURCE_ID_QNAME.

Author:
Dan Jemiolo (danj)

Constructor Summary
CounterResourceIdFactory()
           
CounterResourceIdFactory(String counterPrefix)
           
 
Method Summary
 QName getIdentifierName()
           
 String getNextIdentifier()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CounterResourceIdFactory

public CounterResourceIdFactory()

CounterResourceIdFactory

public CounterResourceIdFactory(String counterPrefix)
Method Detail

getIdentifierName

public QName getIdentifierName()
Specified by:
getIdentifierName in interface ResourceIdFactory
Returns:
The value defined by WsaUtils.DEFAULT_RESOURCE_ID_QNAME

getNextIdentifier

public String getNextIdentifier()
Specified by:
getNextIdentifier in interface ResourceIdFactory
Returns:
The string value "MuseResource-N", where N is the number of times this method has been called (starting with 1).


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