public class JobExecutionNotificationPublisher extends Object implements org.springframework.context.ApplicationListener, org.springframework.jmx.export.notification.NotificationPublisherAware
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
JobExecutionNotificationPublisher() |
Modifier and Type | Method and Description |
---|---|
void |
onApplicationEvent(org.springframework.context.ApplicationEvent 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.NotificationPublisherAware
NotificationPublisherAware.setNotificationPublisher(org.springframework.jmx.export.notification.NotificationPublisher)
public void onApplicationEvent(org.springframework.context.ApplicationEvent 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
ApplicationListener.onApplicationEvent(ApplicationEvent)
Copyright © 2014 Pivotal. All rights reserved.