org.springframework.integration.adapter.event
Class ApplicationEventTargetAdapter
java.lang.Object
org.springframework.integration.adapter.AbstractTargetAdapter<MessagingEvent>
org.springframework.integration.adapter.event.ApplicationEventTargetAdapter
- All Implemented Interfaces:
- org.springframework.context.ApplicationEventPublisherAware, org.springframework.integration.handler.MessageHandler
public class ApplicationEventTargetAdapter
- extends org.springframework.integration.adapter.AbstractTargetAdapter<MessagingEvent>
- implements org.springframework.context.ApplicationEventPublisherAware
A target adapter for publishing MessagingEvents
. The
MessagingEvent
is a subclass of Spring's ApplicationEvent
used by this adapter to wrap any Message
received on its channel.
- Author:
- Mark Fisher
Fields inherited from class org.springframework.integration.adapter.AbstractTargetAdapter |
logger |
Methods inherited from class org.springframework.integration.adapter.AbstractTargetAdapter |
getMessageMapper, handle, setMessageMapper |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplicationEventTargetAdapter
public ApplicationEventTargetAdapter()
setApplicationEventPublisher
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
- Specified by:
setApplicationEventPublisher
in interface org.springframework.context.ApplicationEventPublisherAware
sendToTarget
protected boolean sendToTarget(MessagingEvent event)
- Specified by:
sendToTarget
in class org.springframework.integration.adapter.AbstractTargetAdapter<MessagingEvent>