org.apache.qpid.management.wsdm.common
Class ObjectNameIdFactory
java.lang.Object
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).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectNameIdFactory
public ObjectNameIdFactory()
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