| java.lang.Object javax.management.ObjectInstance
All known Subclasses: org.huihoo.jfox.jmx.ExtendedObjectInstance,
ObjectInstance | public class ObjectInstance implements Serializable(Code) | | 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.
|
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. | 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. |
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 is to be comparedwith. | public String | getClassName() | public ObjectName | getObjectName() Returns the object name part. |
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 MBean the class name should be retrieved from the MBeanInfo it provides. exception: MalformedObjectNameException - The string passed as a parameter 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 MBean the class name should be retrieved from the MBeanInfo 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 is to be comparedwith. True if the two object instances are equal, otherwise false. |
getClassName | public String getClassName()(Code) | | Returns the class part
|
getObjectName | public ObjectName getObjectName()(Code) | | Returns the object name part.
|
|
|