public class NotificationPublishingMessageHandler
extends org.springframework.integration.handler.AbstractMessageHandler
implements org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
NotificationPublishingMessageHandler(javax.management.ObjectName objectName) |
NotificationPublishingMessageHandler(java.lang.String objectName) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getComponentType() |
protected void |
handleMessageInternal(org.springframework.messaging.Message<?> message) |
void |
onInit() |
void |
setDefaultNotificationType(java.lang.String defaultNotificationType)
Specify a dot-delimited String representing the Notification type to
use by default when no explicit Notification mapper
has been configured.
|
void |
setNotificationMapper(org.springframework.integration.mapping.OutboundMessageMapper<javax.management.Notification> notificationMapper)
Set a mapper for creating Notifications from a Message.
|
getOrder, handleMessage, setOrder, setShouldTrack
afterPropertiesSet, getApplicationContext, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public NotificationPublishingMessageHandler(javax.management.ObjectName objectName)
public NotificationPublishingMessageHandler(java.lang.String objectName)
public void setNotificationMapper(org.springframework.integration.mapping.OutboundMessageMapper<javax.management.Notification> notificationMapper)
notificationMapper
- The notification mapper.public void setDefaultNotificationType(java.lang.String defaultNotificationType)
defaultNotificationType
- The default notification type.public java.lang.String getComponentType()
getComponentType
in interface org.springframework.integration.support.context.NamedComponent
getComponentType
in class org.springframework.integration.handler.AbstractMessageHandler
public final void onInit() throws java.lang.Exception
onInit
in class org.springframework.integration.context.IntegrationObjectSupport
java.lang.Exception
protected void handleMessageInternal(org.springframework.messaging.Message<?> message) throws java.lang.Exception
handleMessageInternal
in class org.springframework.integration.handler.AbstractMessageHandler
java.lang.Exception