org.springframework.integration.event.outbound
Class ApplicationEventPublishingMessageHandler
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.event.outbound.ApplicationEventPublishingMessageHandler
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationEventPublisherAware, org.springframework.core.Ordered, org.springframework.integration.context.NamedComponent, org.springframework.integration.context.Orderable, org.springframework.integration.core.MessageHandler, org.springframework.integration.history.TrackableComponent
public class ApplicationEventPublishingMessageHandler
- extends org.springframework.integration.handler.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.
| Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport |
logger |
| Fields inherited from interface org.springframework.core.Ordered |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
| Methods inherited from class org.springframework.integration.handler.AbstractMessageHandler |
getComponentType, getOrder, handleMessage, setOrder, setShouldTrack |
| Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getTaskScheduler, onInit, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.springframework.integration.context.NamedComponent |
getComponentName |
ApplicationEventPublishingMessageHandler
public ApplicationEventPublishingMessageHandler()
setApplicationEventPublisher
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
- Specified by:
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAware
handleMessageInternal
protected void handleMessageInternal(org.springframework.integration.Message<?> message)
- Specified by:
handleMessageInternal in class org.springframework.integration.handler.AbstractMessageHandler