org.springframework.integration.ip.tcp.connection
Class TcpConnectionEventListeningMessageProducer
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.endpoint.MessageProducerSupport
org.springframework.integration.ip.tcp.connection.TcpConnectionEventListeningMessageProducer
- All Implemented Interfaces:
- java.util.EventListener, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<TcpConnectionEvent>, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle, NamedComponent, MessageProducer, TrackableComponent
public class TcpConnectionEventListeningMessageProducer
- extends MessageProducerSupport
- implements org.springframework.context.ApplicationListener<TcpConnectionEvent>
MessageProducer
that produces Messages with @link TcpConnectionEvent
payloads.
- Since:
- 3.0
- Author:
- Gary Russell
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getComponentType, getConversionService, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TcpConnectionEventListeningMessageProducer
public TcpConnectionEventListeningMessageProducer()
setEventTypes
public void setEventTypes(java.lang.Class<? extends TcpConnectionEvent>[] eventTypes)
- Set the list of event types (classes that extend TcpConnectionEvent) that
this adapter should send to the message channel. By default, all event
types will be sent.
onApplicationEvent
public void onApplicationEvent(TcpConnectionEvent event)
- Specified by:
onApplicationEvent
in interface org.springframework.context.ApplicationListener<TcpConnectionEvent>
messageFromEvent
protected Message<TcpConnectionEvent> messageFromEvent(TcpConnectionEvent event)