org.springframework.integration.adapter.event
Class ApplicationEventSourceAdapter
java.lang.Object
org.springframework.integration.adapter.AbstractSourceAdapter<org.springframework.context.ApplicationEvent>
org.springframework.integration.adapter.event.ApplicationEventSourceAdapter
- All Implemented Interfaces:
- java.util.EventListener, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationListener, org.springframework.integration.adapter.SourceAdapter
public class ApplicationEventSourceAdapter
- extends org.springframework.integration.adapter.AbstractSourceAdapter<org.springframework.context.ApplicationEvent>
- implements org.springframework.context.ApplicationListener
A source adapter for passing Spring
ApplicationEvents
within messages.
- Author:
- Mark Fisher
Fields inherited from class org.springframework.integration.adapter.AbstractSourceAdapter |
logger |
Method Summary |
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event)
|
void |
setEventTypes(java.util.List<java.lang.Class<? extends org.springframework.context.ApplicationEvent>> eventTypes)
Set the list of event types (classes that extend ApplicationEvent) that
this adapter should send to the message channel. |
Methods inherited from class org.springframework.integration.adapter.AbstractSourceAdapter |
afterPropertiesSet, getChannel, getMessageMapper, initialize, isInitialized, sendToChannel, setChannel, setMessageMapper, setSendTimeout |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplicationEventSourceAdapter
public ApplicationEventSourceAdapter()
setEventTypes
public void setEventTypes(java.util.List<java.lang.Class<? extends org.springframework.context.ApplicationEvent>> eventTypes)
- Set the list of event types (classes that extend ApplicationEvent) that
this adapter should send to the message channel. By default, all event
types will be sent.
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
- Specified by:
onApplicationEvent
in interface org.springframework.context.ApplicationListener