JMX exporter that allows for exposing any
Spring-managed bean to a JMX
MBeanServer
, without the need to define any JMX-specific information in the bean classes.
If the bean implements one of the JMX management interfaces, then MBeanExporter can simply register the MBean with the server automatically, through its autodetection process.
If the bean does not implement one of the JMX management interfaces, then MBeanExporter will create the management information using the supplied {@link MBeanInfoAssembler} implementation.
A list of {@link MBeanExporterListener MBeanExporterListeners}can be registered via the {@link #setListeners(MBeanExporterListener[]) listeners} property,allowing application code to be notified of MBean registration and unregistration events.
This exporter is compatible with JMX 1.0 or higher for its basic functionality. However, for adapting AOP proxies where the target bean is a native MBean, JMX 1.2 is required. As of Spring 2.5, this class also autodetects and exports JDK 1.6 MXBeans.
@author Rob Harrop
@author Juergen Hoeller
@author Rick Evans
@author Mark Fisher
@since 1.2
@see #setBeans
@see #setAutodetect
@see #setAssembler
@see #setListeners
@see org.springframework.jmx.export.assembler.MBeanInfoAssembler
@see MBeanExporterListener