This class allows use of MBeanServerConnection methods with ObjectName patterns
that resolve to a single MBean. This is useful to avoid hard-coupling to specific
ObjectNames; instead an ObjectName pattern may be used which resolves to a
single MBean.
For example, if you know the 'name' property is unique (at least for your MBean),
you could use the ObjectName "*:name=myname,*" instead of a possibly much longer
and complicated name (which potentially could change each time the MBean is registered). |