Class ApplicationEventPublishingMessageHandler

All Implemented Interfaces:
org.reactivestreams.Subscriber<Message<?>>, Aware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, ApplicationContextAware, ApplicationEventPublisherAware, Ordered, ComponentSourceAware, ExpressionCapable, Orderable, IntegrationPattern, NamedComponent, IntegrationManagement, TrackableComponent, MessageHandler, reactor.core.CoreSubscriber<Message<?>>

public class ApplicationEventPublishingMessageHandler extends AbstractMessageHandler implements 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.

If the publishPayload flag is specified to true, the payload will be published as is without wrapping to any ApplicationEvent.

Author:
Mark Fisher, Artem Bilan