public class ApplicationEventPublishingMessageHandler extends AbstractMessageHandler implements org.springframework.context.ApplicationEventPublisherAware
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
.logger
Constructor and Description |
---|
ApplicationEventPublishingMessageHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
handleMessageInternal(Message<?> message) |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
getComponentType, getOrder, handleMessage, setOrder, setShouldTrack
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, onInit, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComponentName
public ApplicationEventPublishingMessageHandler()
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher
in interface org.springframework.context.ApplicationEventPublisherAware
protected void handleMessageInternal(Message<?> message)
handleMessageInternal
in class AbstractMessageHandler