org.apache.qpid.management.wsdm.common
Class ObjectNameIdFactory

java.lang.Object
  extended by org.apache.qpid.management.wsdm.common.ObjectNameIdFactory
All Implemented Interfaces:
org.apache.muse.core.routing.ResourceIdFactory

public class ObjectNameIdFactory
extends Object
implements org.apache.muse.core.routing.ResourceIdFactory

ResourceIdFactory implementation that is using an objectName as resource identifier. This is done in order to make a relationship between an MBean (which is part of the JMX core domain model) and a WS-Resource (the same entity as is represented on WS-DM adapter side).


Constructor Summary
ObjectNameIdFactory()
           
 
Method Summary
 QName getIdentifierName()
          Returns the name of the identifier element.
 String getNextIdentifier()
          Returns the object name used as a resource identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectNameIdFactory

public ObjectNameIdFactory()
Method Detail

getIdentifierName

public QName getIdentifierName()
Returns the name of the identifier element.

Specified by:
getIdentifierName in interface org.apache.muse.core.routing.ResourceIdFactory
Returns:
the name of the identifier element.

getNextIdentifier

public String getNextIdentifier()
Returns the object name used as a resource identifier. Developer note : this factory is highly coupled with ThreadSessionManager stuff because the object name that will be used as identifier is supposed to be in the thread session.

Specified by:
getNextIdentifier in interface org.apache.muse.core.routing.ResourceIdFactory
Returns:
the object name used as a resource identifier.


Licensed to the Apache Software Foundation