javax.management
public class ObjectInstance extends Object implements Serializable
Since: 1.5
Constructor Summary | |
---|---|
ObjectInstance(ObjectName name, String className)
Constructs a new {@link ObjectInstance} for the specified bean
with the supplied class name. | |
ObjectInstance(String name, String className)
Constructs a new {@link ObjectInstance} for the specified bean
with the supplied class name. |
Method Summary | |
---|---|
boolean | equals(Object obj)
Returns true if the supplied object is also an {@link ObjectInstance}
with the same bean and class name.
|
String | getClassName()
Returns the class name of the bean.
|
ObjectName | getObjectName()
Returns the name of the bean.
|
int | hashCode()
Returns a hash code for this instance. |
Parameters: name the name of the bean. className the class name of the bean.
Parameters: name the name of the bean. className the class name of the bean.
Throws: MalformedObjectNameException if the name of the bean does not match the syntax of an {@link ObjectName}.
Parameters: obj the object to compare.
Returns: true if the the supplied object is equal to this
.
Returns: the class name.
Returns: the name of the bean.
Returns: the hash code of this instance.