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

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

Introduction

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

Prototype

@Override
    public Class<?> getObjectType() 

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