org.apache.muse.core.routing
Class CounterResourceIdFactory
java.lang.Object
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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CounterResourceIdFactory
public CounterResourceIdFactory()
CounterResourceIdFactory
public CounterResourceIdFactory(String counterPrefix)
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.