public class

StandardMBeanSupport

extends MBeanSupport<M>
java.lang.Object
   ↳ com.sun.jmx.mbeanserver.MBeanSupport<M>
     ↳ com.sun.jmx.mbeanserver.StandardMBeanSupport

Class Overview

Base class for Standard MBeans.

Summary

Public Constructors
<T> StandardMBeanSupport(T resource, Class<T> mbeanInterface)

Construct a Standard MBean that wraps the given resource using the given Standard MBean interface.

Public Methods
MBeanInfo getMBeanInfo()
Provides the exposed attributes and actions of the Dynamic MBean using an MBeanInfo object.
void register(MBeanServer mbs, ObjectName name)
void unregister()
[Expand]
Inherited Methods
From class com.sun.jmx.mbeanserver.MBeanSupport
From class java.lang.Object
From interface com.sun.jmx.mbeanserver.DynamicMBean2
From interface javax.management.DynamicMBean
From interface javax.management.MBeanRegistration

Public Constructors

public StandardMBeanSupport (T resource, Class<T> mbeanInterface)

Construct a Standard MBean that wraps the given resource using the given Standard MBean interface.

Parameters
resource the underlying resource for the new MBean.
mbeanInterface the interface to be used to determine the MBean's management interface.
Throws
IllegalArgumentException if resource is null or if it does not implement the class mbeanInterface or if that class is not a valid Standard MBean interface.
NotCompliantMBeanException

Public Methods

public MBeanInfo getMBeanInfo ()

Provides the exposed attributes and actions of the Dynamic MBean using an MBeanInfo object.

Returns
  • An instance of MBeanInfo allowing all attributes and actions exposed by this Dynamic MBean to be retrieved.

public void register (MBeanServer mbs, ObjectName name)

public void unregister ()