Construct a JMXVisitor. This instance will register by default any component in the
MBeanServer , that is
already a
DynamicMBean . The
ObjectName will use the default domain of the MBeanServer and has a
type key with the class name (without package name) as value.
Parameters: server - The MBeanServerto use for registering the MBeans.
Construct a JMXVisitor.
Parameters: server - The MBeanServer to use for registering the MBeans. Parameters: providers - The providers to deliver the DynamicMBeans.
Register a MBean in the MBeanServer.
Parameters: dynamicMBean - the DynamicMBean to register. Parameters: objectName - the ObjectName of the MBean registered the MBeanServer. Returns the ObjectInstance returned from the MBeanServer after registration. throws: JMXRegistrationException - Thrown if MBean cannot be registered.