public class

NamedObject

extends Object
java.lang.Object
   ↳ com.sun.jmx.mbeanserver.NamedObject

Class Overview

This class is used for storing a pair (name, object) where name is an object name and object is a reference to the object.

Summary

Public Constructors
NamedObject(ObjectName objectName, DynamicMBean object)
Allows a named object to be created.
NamedObject(String objectName, DynamicMBean object)
Allows a named object to be created.
Public Methods
boolean equals(Object object)
Compares the current object name with another object name.
ObjectName getName()
Get the object name.
DynamicMBean getObject()
Get the object
int hashCode()
Returns a hash code for this named object.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public NamedObject (ObjectName objectName, DynamicMBean object)

Allows a named object to be created.

Parameters
objectName The object name of the object.
object A reference to the object.

public NamedObject (String objectName, DynamicMBean object)

Allows a named object to be created.

Parameters
objectName The string representation of the object name of the object.
object A reference to the object.
Throws
MalformedObjectNameException The string passed does not have the format of a valid ObjectName

Public Methods

public boolean equals (Object object)

Compares the current object name with another object name.

Parameters
object The Named Object that the current object name is to be compared with.
Returns
  • True if the two named objects are equal, otherwise false.

public ObjectName getName ()

Get the object name.

public DynamicMBean getObject ()

Get the object

public int hashCode ()

Returns a hash code for this named object.

Returns
  • a hash code value for this object.