ObjectInstance (Java SE 15 & JDK 15) (original) (raw)

All Implemented Interfaces:

[Serializable](../../../java.base/java/io/Serializable.html "interface in java.io")


public class ObjectInstance extends Object implements Serializable

Used to represent the object name of an MBean and its class name. If the MBean is a Dynamic MBean the class name should be retrieved from the MBeanInfo it provides.

Since:

1.5

See Also:

Serialized Form

Constructors

Constructor Description
ObjectInstance​(String objectName,String className) Allows an object instance to be created given a string representation of an object name and the full class name, including the package name.
ObjectInstance​(ObjectName objectName,String className) Allows an object instance to be created given an object name and the full class name, including the package name.
Modifier and Type Method Description
boolean equals​(Object object) Compares the current object instance with another object instance.
String getClassName() Returns the class part.
ObjectName getObjectName() Returns the object name part.
String toString() Returns a string representing this ObjectInstance object.