org.springframework.integration.event
Class ApplicationEventPublishingMessageHandler<T>

java.lang.Object
  extended by org.springframework.integration.handler.AbstractMessageHandler
      extended by org.springframework.integration.event.ApplicationEventPublishingMessageHandler<T>
All Implemented Interfaces:
org.springframework.context.ApplicationEventPublisherAware, org.springframework.core.Ordered, MessageHandler

public class ApplicationEventPublishingMessageHandler<T>
extends AbstractMessageHandler
implements org.springframework.context.ApplicationEventPublisherAware

A MessageHandler that publishes each Message it receives as a MessagingEvent. The MessagingEvent is a subclass of Spring's ApplicationEvent used by this adapter to simply wrap the Message.

Author:
Mark Fisher

Field Summary
 
Fields inherited from class org.springframework.integration.handler.AbstractMessageHandler
logger
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
ApplicationEventPublishingMessageHandler()
           
 
Method Summary
protected  void handleMessageInternal(Message<?> message)
           
 void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
           
 
Methods inherited from class org.springframework.integration.handler.AbstractMessageHandler
getOrder, handleMessage, setOrder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationEventPublishingMessageHandler

public ApplicationEventPublishingMessageHandler()
Method Detail

setApplicationEventPublisher

public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
Specified by:
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAware

handleMessageInternal

protected void handleMessageInternal(Message<?> message)
Specified by:
handleMessageInternal in class AbstractMessageHandler