org.springframework.integration.jmx
Class NotificationPublishingMessageHandler
java.lang.Object
  
org.springframework.integration.context.IntegrationObjectSupport
      
org.springframework.integration.handler.AbstractMessageHandler
          
org.springframework.integration.jmx.NotificationPublishingMessageHandler
- All Implemented Interfaces: 
 - BeanFactoryAware, BeanNameAware, InitializingBean, Ordered, NamedComponent, MessageHandler, TrackableComponent
 
public class NotificationPublishingMessageHandler
- extends AbstractMessageHandler
- implements BeanFactoryAware, InitializingBean
  
- Since:
 
  - 2.0
 
- Author:
 
  - Mark Fisher
 
 
 
 
 
 
 
| Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport | 
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getRequiredMetadataPersister, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString | 
 
 
 
 
 
NotificationPublishingMessageHandler
public NotificationPublishingMessageHandler(ObjectName objectName)
NotificationPublishingMessageHandler
public NotificationPublishingMessageHandler(String objectName)
setNotificationMapper
public void setNotificationMapper(OutboundMessageMapper<Notification> notificationMapper)
- Set a mapper for creating Notifications from a Message. If not provided,
 a default implementation will be used such that String-typed payloads will be
 passed as the 'message' of the Notification and all other payload types
 will be passed as the 'userData' of the Notification.
 
 
 
setDefaultNotificationType
public void setDefaultNotificationType(String defaultNotificationType)
- Specify a dot-delimited String representing the Notification type to
 use by default when no explicit Notification mapper
 has been configured. If not provided, then a notification type header will
 be required for each message being mapped into a Notification.
 
 
 
onInit
public final void onInit()
                  throws Exception
- Description copied from class: 
IntegrationObjectSupport 
- Subclasses may implement this for initialization logic.
- Overrides:
 onInit in class IntegrationObjectSupport
 
- Throws:
 Exception
 
 
handleMessageInternal
protected void handleMessageInternal(Message<?> message)
                              throws Exception
- Specified by:
 handleMessageInternal in class AbstractMessageHandler
 
- Throws:
 Exception
 
Copyright © 2010. All Rights Reserved.