Example usage for org.springframework.integration.config IntegrationConfigUtils FACTORY_BEAN_OBJECT_TYPE

List of usage examples for org.springframework.integration.config IntegrationConfigUtils FACTORY_BEAN_OBJECT_TYPE

Introduction

In this page you can find the example usage for org.springframework.integration.config IntegrationConfigUtils FACTORY_BEAN_OBJECT_TYPE.

Prototype

String FACTORY_BEAN_OBJECT_TYPE

To view the source code for org.springframework.integration.config IntegrationConfigUtils FACTORY_BEAN_OBJECT_TYPE.

Click Source Link

Usage

From source file:org.springframework.integration.config.xml.GatewayParserTests.java

@Test
public void testFactoryBeanObjectTypeWithServiceInterface() throws Exception {
    ConfigurableListableBeanFactory beanFactory = ((GenericApplicationContext) context).getBeanFactory();
    Object attribute = beanFactory.getMergedBeanDefinition("&oneWay")
            .getAttribute(IntegrationConfigUtils.FACTORY_BEAN_OBJECT_TYPE);
    assertEquals(TestService.class.getName(), attribute);
}

From source file:org.springframework.integration.config.xml.GatewayParserTests.java

@Test
public void testFactoryBeanObjectTypeWithNoServiceInterface() throws Exception {
    ConfigurableListableBeanFactory beanFactory = ((GenericApplicationContext) context).getBeanFactory();
    Object attribute = beanFactory.getMergedBeanDefinition("&defaultConfig")
            .getAttribute(IntegrationConfigUtils.FACTORY_BEAN_OBJECT_TYPE);
    assertEquals(RequestReplyExchanger.class.getName(), attribute);
}