Class ApplicationEventListeningMessageProducer

All Implemented Interfaces:
EventListener, Aware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, SmartInitializingSingleton, ApplicationContextAware, ApplicationListener<ApplicationEvent>, GenericApplicationListener, SmartApplicationListener, Lifecycle, Phased, SmartLifecycle, Ordered, ExpressionCapable, MessageProducer, IntegrationPattern, NamedComponent, IntegrationInboundManagement, IntegrationManagement, ManageableLifecycle, ManageableSmartLifecycle, TrackableComponent

public class ApplicationEventListeningMessageProducer extends ExpressionMessageProducerSupport implements GenericApplicationListener
An inbound Channel Adapter that implements GenericApplicationListener and passes Spring ApplicationEvents within messages. If a payloadExpression is provided, it will be evaluated against the ApplicationEvent instance to create the Message payload. Otherwise, the event itself will be the payload.
Author:
Mark Fisher, Artem Bilan, Gary Russell
See Also: