public class ObjectNameLinkImpl extends java.lang.Object implements ObjectNameLink, java.io.Serializable
Default implementation of the ObjectNameLink interface.
| Constructor and Description |
|---|
ObjectNameLinkImpl(javax.management.ObjectName objectName,
java.lang.String linkName)
Constructs an ObjectNameLinkImpl with the specified ObjectName and human readable link name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object)
Compares this ObjectNameLinkImpl to another one.
|
java.lang.String |
getLinkName()
Gets a human readable name for the MBean that this instance of ObjectNameLink represents a link to.
|
javax.management.ObjectName |
getObjectName()
Gets the
ObjectName of the MBean that this instance of ObjectNameLink represents a link to. |
int |
hashCode()
Returns a hash code value for the object.
|
java.lang.String |
toString()
Returns the human readable name of the linked MBean, as returned by
getLinkName(). |
public ObjectNameLinkImpl(javax.management.ObjectName objectName,
java.lang.String linkName)
Constructs an ObjectNameLinkImpl with the specified ObjectName and human readable link name.
objectName - The ObjectName the MBean this object links to was registered with.linkName - The human readable name of the MBean this object links to.java.lang.IllegalArgumentException - If either the objectName or linkName arguments are null.public javax.management.ObjectName getObjectName()
ObjectNameLink
Gets the ObjectName of the MBean that this instance of ObjectNameLink represents a link to.
getObjectName in interface ObjectNameLinkObjectName of the linked object.public java.lang.String getLinkName()
ObjectNameLinkGets a human readable name for the MBean that this instance of ObjectNameLink represents a link to.
getLinkName in interface ObjectNameLinkpublic boolean equals(java.lang.Object object)
Compares this ObjectNameLinkImpl to another one.
equals in class java.lang.Objectobject - The object to be compared against.true if the specified object is a ObjectNameLinkImpl and its getObjectName() and getLinkName() values are identical to this ObjectNameLinkImpl.public int hashCode()
Returns a hash code value for the object.
hashCode in class java.lang.Objectpublic java.lang.String toString()
Returns the human readable name of the linked MBean, as returned by getLinkName().
toString in class java.lang.ObjectPlease send bug reports and comments to Caplin support