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.
-
className - The full class name, including the package
name, of the object instance. If the MBean is a Dynamic MBean
the class name corresponds to its {@link
DynamicMBean#getMBeanInfo()
getMBeanInfo()}
.getClassName()
.
Throws:
-
MalformedObjectNameException - The string passed as a
parameter does not have the right format.