Search in sources :

Example 1 with ByteArrayLfSerializer

use of org.springframework.integration.ip.tcp.serializer.ByteArrayLfSerializer in project spring-integration by spring-projects.

the class TcpSyslogReceivingChannelAdapter method onInit.

@Override
protected void onInit() {
    super.onInit();
    if (this.connectionFactory == null) {
        this.connectionFactory = new TcpNioServerConnectionFactory(getPort());
        this.connectionFactory.setDeserializer(new ByteArrayLfSerializer());
        this.connectionFactory.setBeanFactory(getBeanFactory());
        if (this.applicationEventPublisher != null) {
            this.connectionFactory.setApplicationEventPublisher(this.applicationEventPublisher);
        }
        this.connectionFactory.afterPropertiesSet();
    }
    this.connectionFactory.registerListener(this);
}
Also used : ByteArrayLfSerializer(org.springframework.integration.ip.tcp.serializer.ByteArrayLfSerializer) TcpNioServerConnectionFactory(org.springframework.integration.ip.tcp.connection.TcpNioServerConnectionFactory)

Aggregations

TcpNioServerConnectionFactory (org.springframework.integration.ip.tcp.connection.TcpNioServerConnectionFactory)1 ByteArrayLfSerializer (org.springframework.integration.ip.tcp.serializer.ByteArrayLfSerializer)1