Managed resources can access a NotificationPublisher
by implementing the {@link NotificationPublisherAware} interface. After a particularmanaged resource instance is registered with the {@link javax.management.MBeanServer}, Spring will inject a NotificationPublisher
instance into it if that resource implements the {@link NotificationPublisherAware} inteface.
Each managed resource instance will have a distinct instance of a NotificationPublisher
implementation. This instance will keep track of all the {@link javax.management.NotificationListener NotificationListeners}registered for a particular mananaged resource.
Any existing, user-defined MBeans should use standard JMX APIs for notification publication; this interface is intended for use only by Spring-created MBeans. @author Rob Harrop @since 2.0 @see NotificationPublisherAware @see org.springframework.jmx.export.MBeanExporter
|
|