public class JobExecutionNotificationPublisher extends java.lang.Object implements org.springframework.context.ApplicationListener<SimpleMessageApplicationEvent>, org.springframework.jmx.export.notification.NotificationPublisherAware
| Constructor and Description |
|---|
JobExecutionNotificationPublisher() |
| Modifier and Type | Method and Description |
|---|---|
void |
onApplicationEvent(SimpleMessageApplicationEvent applicationEvent)
If the event is a
SimpleMessageApplicationEvent for open and
close we log the event at INFO level and send a JMX notification if we
are also an MBean. |
void |
setNotificationPublisher(org.springframework.jmx.export.notification.NotificationPublisher notificationPublisher)
Injection setter.
|
public void setNotificationPublisher(org.springframework.jmx.export.notification.NotificationPublisher notificationPublisher)
setNotificationPublisher in interface org.springframework.jmx.export.notification.NotificationPublisherAwareNotificationPublisherAware.setNotificationPublisher(org.springframework.jmx.export.notification.NotificationPublisher)public void onApplicationEvent(SimpleMessageApplicationEvent applicationEvent)
SimpleMessageApplicationEvent for open and
close we log the event at INFO level and send a JMX notification if we
are also an MBean.onApplicationEvent in interface org.springframework.context.ApplicationListener<SimpleMessageApplicationEvent>ApplicationListener.onApplicationEvent(ApplicationEvent)