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);
}
Aggregations