Overview | Package | Class | Tree | Serialized | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.muse.core.routing
Class CounterResourceIdFactory

    java.lang.Object
      org.apache.muse.core.routing.CounterResourceIdFactory

All Implemented Interfaces:
  ResourceIdFactory

public class CounterResourceIdFactory
extends java.lang.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(java.lang.String counterPrefix)`

Method Summary
`QName` | `getIdentifierName()`
`java.lang.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(java.lang.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 java.lang.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).

Overview | Package | Class | Tree | Serialized | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD