org.springframework.integration.event
Class ApplicationEventInboundChannelAdapter
java.lang.Object
  
org.springframework.integration.context.IntegrationObjectSupport
      
org.springframework.integration.endpoint.AbstractEndpoint
          
org.springframework.integration.endpoint.MessageProducerSupport
              
org.springframework.integration.event.ApplicationEventInboundChannelAdapter
- All Implemented Interfaces: 
 - EventListener, BeanFactoryAware, BeanNameAware, InitializingBean, ApplicationListener<ApplicationEvent>, Lifecycle, Phased, SmartLifecycle, NamedComponent, MessageProducer, TrackableComponent
 
public class ApplicationEventInboundChannelAdapter
- extends MessageProducerSupport
- implements ApplicationListener<ApplicationEvent>
  
An inbound Channel Adapter that passes Spring
 ApplicationEvents within messages.
- Author:
 
  - Mark Fisher
 
 
 
 
| 
Method Summary | 
protected  void | 
doStart()
 
          Subclasses must implement this method with the start behavior. | 
protected  void | 
doStop()
 
          Subclasses must implement this method with the stop behavior. | 
 void | 
onApplicationEvent(ApplicationEvent event)
 
            | 
 void | 
setEventTypes(Class<? extends 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.context.IntegrationObjectSupport | 
afterPropertiesSet, getBeanFactory, getComponentName, getComponentType, getConversionService, getRequiredMetadataPersister, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, toString | 
 
 
 
ApplicationEventInboundChannelAdapter
public ApplicationEventInboundChannelAdapter()
setEventTypes
public void setEventTypes(Class<? extends 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(ApplicationEvent event)
- Specified by:
 onApplicationEvent in interface ApplicationListener<ApplicationEvent>
 
 
doStart
protected void doStart()
- Description copied from class: 
AbstractEndpoint 
- Subclasses must implement this method with the start behavior.
 This method will be invoked while holding the 
AbstractEndpoint.lifecycleLock.
- Specified by:
 doStart in class AbstractEndpoint
 
 
 
doStop
protected void doStop()
- Description copied from class: 
AbstractEndpoint 
- Subclasses must implement this method with the stop behavior.
 This method will be invoked while holding the 
AbstractEndpoint.lifecycleLock.
- Specified by:
 doStop in class AbstractEndpoint
 
 
 
Copyright © 2010. All Rights Reserved.