Top Description Fields Constructors Methods
com.sun.jmx.mbeanserver

public Class NamedObject

extends Object
Class Inheritance
Imports
javax.management.*

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

Field Summary

Modifier and TypeField and Description
private final ObjectName
name

Object name.

private final DynamicMBean
object

Object reference.

Constructor Summary

AccessConstructor and Description
public
NamedObject(ObjectName
The object name of the object.
objectName
,
DynamicMBean
A reference to the object.
object
)

Allows a named object to be created.

public
NamedObject(String
The string representation of the object name of the object.
objectName
,
DynamicMBean
A reference to the object.
object
)

Allows a named object to be created.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

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

Overrides java.lang.Object.equals.

Compares the current object name with another object name.

public ObjectName
getName()

Get the object name.

public DynamicMBean
getObject()

Get the object

public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code for this named object.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

nameback to summary
private final ObjectName name

Object name.

objectback to summary
private final DynamicMBean object

Object reference.

Constructor Detail

NamedObjectback to summary
public NamedObject(ObjectName objectName, DynamicMBean object)

Allows a named object to be created.

Parameters
objectName:ObjectName

The object name of the object.

object:DynamicMBean

A reference to the object.

NamedObjectback to summary
public NamedObject(String objectName, DynamicMBean object) throws MalformedObjectNameException

Allows a named object to be created.

Parameters
objectName:String

The string representation of the object name of the object.

object:DynamicMBean

A reference to the object.

Exceptions
MalformedObjectNameException:
The string passed does not have the format of a valid ObjectName

Method Detail

equalsback to summary
public boolean equals(Object object)

Overrides java.lang.Object.equals.

Compares the current object name with another object name.

Parameters
object:Object

The Named Object that the current object name is to be compared with.

Returns:boolean

True if the two named objects are equal, otherwise false.

getNameback to summary
public ObjectName getName()

Get the object name.

getObjectback to summary
public DynamicMBean getObject()

Get the object

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code for this named object.

Returns:int

Doc from java.lang.Object.hashCode.

a hash code value for this object