org.springframework.integration.adapter.event
Class ApplicationEventTargetAdapter

java.lang.Object
  extended by org.springframework.integration.adapter.AbstractTargetAdapter<MessagingEvent>
      extended by org.springframework.integration.adapter.event.ApplicationEventTargetAdapter
All Implemented Interfaces:
org.springframework.context.ApplicationEventPublisherAware, MessageHandler

public class ApplicationEventTargetAdapter
extends 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

Field Summary
 
Fields inherited from class org.springframework.integration.adapter.AbstractTargetAdapter
logger
 
Constructor Summary
ApplicationEventTargetAdapter()
           
 
Method Summary
protected  boolean sendToTarget(MessagingEvent event)
           
 void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
           
 
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
 

Constructor Detail

ApplicationEventTargetAdapter

public ApplicationEventTargetAdapter()
Method Detail

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 AbstractTargetAdapter<MessagingEvent>