Example usage for org.springframework.beans.factory.config ConfigurableListableBeanFactory getMergedBeanDefinition

List of usage examples for org.springframework.beans.factory.config ConfigurableListableBeanFactory getMergedBeanDefinition

Introduction

In this page you can find the example usage for org.springframework.beans.factory.config ConfigurableListableBeanFactory getMergedBeanDefinition.

Prototype

BeanDefinition getMergedBeanDefinition(String beanName) throws NoSuchBeanDefinitionException;

Source Link

Document

Return a merged BeanDefinition for the given bean name, merging a child bean definition with its parent if necessary.

Usage

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