| java.lang.Object javax.management.ObjectInstance
ObjectInstance | public class ObjectInstance implements Serializable(Code) | | This class is used for representing an object instance; that is,
an object name and class. If the MBean is a Dynamic MBean the class name
should be retrieved from the MBeanInfo it provides.
|
Constructor Summary | |
public | 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.
Parameters: objectName - A string representation of the object name. Parameters: className - The full class name, including the package name,of the object instance. | public | 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.
Parameters: objectName - The object name. Parameters: className - The full class name, including the package name,of the object instance. |
Method Summary | |
public boolean | equals(Object object) Compares the current object instance with another object instance.
Parameters: object - The object instance that the current object instance isto be compared with. | public String | getClassName() Returns the class part. | public ObjectName | getObjectName() Returns the object name part. | public String | toString() |
ObjectInstance | public ObjectInstance(String objectName, String className) throws MalformedObjectNameException(Code) | | Allows an object instance to be created given a string representation of
an object name and the full class name, including the package name.
Parameters: objectName - A string representation of the object name. Parameters: className - The full class name, including the package name,of the object instance. If the MBean is a Dynamic MBeanthe class name should be retrieved from theMBeanInfo it provides. exception: MalformedObjectNameException - The string passed as aparameter does not have the right format. |
ObjectInstance | public ObjectInstance(ObjectName objectName, String className)(Code) | | Allows an object instance to be created given an object name and
the full class name, including the package name.
Parameters: objectName - The object name. Parameters: className - The full class name, including the package name,of the object instance. If the MBean is a Dynamic MBeanthe class name should be retrieved from theMBeanInfo it provides. |
equals | public boolean equals(Object object)(Code) | | Compares the current object instance with another object instance.
Parameters: object - The object instance that the current object instance isto be compared with. True if the two object instances are equal, otherwise false. |
getClassName | public String getClassName()(Code) | | Returns the class part.
This returns the class name |
getObjectName | public ObjectName getObjectName()(Code) | | Returns the object name part.
This reurns the object name |
toString | public String toString()(Code) | | Overrides toString() method
|
|
|