spring-framework / org.springframework.jmx.export

Package org.springframework.jmx.export

Types

MBeanExporterListener

interface MBeanExporterListener

A listener that allows application code to be notified when an MBean is registered and unregistered via an MBeanExporter.

NotificationListenerBean

open class NotificationListenerBean : NotificationListenerHolder, InitializingBean

Helper class that aggregates a javax.management.NotificationListener, a javax.management.NotificationFilter, and an arbitrary handback object.

Also provides support for associating the encapsulated javax.management.NotificationListener with any number of MBeans from which it wishes to receive javax.management.Notification via the mappedObjectNames property.

Note: This class supports Spring bean names as "mappedObjectNames" as well, as alternative to specifying JMX object names. Note that only beans exported by the same MBeanExporter are supported for such bean names.

SpringModelMBean

open class SpringModelMBean : RequiredModelMBean

Extension of the RequiredModelMBean class that ensures the thread context ClassLoader is switched for the managed resource's ClassLoader before any invocations occur.

Exceptions

MBeanExportException

open class MBeanExportException : JmxException

Exception thrown in case of failure when exporting an MBean.

UnableToRegisterMBeanException

open class UnableToRegisterMBeanException : MBeanExportException

Exception thrown when we are unable to register an MBean, for example because of a naming conflict.