Example usage for org.springframework.beans.factory.parsing BeanComponentDefinition getBeanName

List of usage examples for org.springframework.beans.factory.parsing BeanComponentDefinition getBeanName

Introduction

In this page you can find the example usage for org.springframework.beans.factory.parsing BeanComponentDefinition getBeanName.

Prototype

public String getBeanName() 

Source Link

Document

Return the primary name of the bean, as specified for the bean definition.

Usage

From source file:org.jdal.beans.DefaultsBeanDefinitionParser.java

/**
 * @param registry/*from w w  w  . j a  va2  s. c om*/
 * @param bcd
 */
private void registerBeanComponentDefinition(Element element, ParserContext parserContext,
        BeanComponentDefinition bcd) {
    parserContext.getDelegate().parseBeanDefinitionAttributes(element, bcd.getBeanName(), null,
            (AbstractBeanDefinition) bcd.getBeanDefinition());
    BeanDefinitionRegistry registry = parserContext.getRegistry();
    registry.registerBeanDefinition(bcd.getBeanName(), bcd.getBeanDefinition());
}