Example usage for org.springframework.integration.ip.config TcpConnectionFactoryFactoryBean TcpConnectionFactoryFactoryBean

List of usage examples for org.springframework.integration.ip.config TcpConnectionFactoryFactoryBean TcpConnectionFactoryFactoryBean

Introduction

In this page you can find the example usage for org.springframework.integration.ip.config TcpConnectionFactoryFactoryBean TcpConnectionFactoryFactoryBean.

Prototype

public TcpConnectionFactoryFactoryBean(String type) 

Source Link

Usage

From source file:org.springframework.integration.ip.tcp.connection.ConnectionFactoryTests.java

@Test
public void factoryBeanTests() {
    TcpConnectionFactoryFactoryBean fb = new TcpConnectionFactoryFactoryBean("client");
    assertEquals(AbstractClientConnectionFactory.class, fb.getObjectType());
    fb = new TcpConnectionFactoryFactoryBean("server");
    assertEquals(AbstractServerConnectionFactory.class, fb.getObjectType());
    fb = new TcpConnectionFactoryFactoryBean();
    assertEquals(AbstractConnectionFactory.class, fb.getObjectType());
}