Example usage for org.springframework.beans.factory.xml BeanDefinitionParserDelegate nodeNameEquals

List of usage examples for org.springframework.beans.factory.xml BeanDefinitionParserDelegate nodeNameEquals

Introduction

In this page you can find the example usage for org.springframework.beans.factory.xml BeanDefinitionParserDelegate nodeNameEquals.

Prototype

public boolean nodeNameEquals(Node node, String desiredName) 

Source Link

Document

Determine whether the name of the supplied node is equal to the supplied name.

Usage

From source file:org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.java

private void parseDefaultElement(Element ele, BeanDefinitionParserDelegate delegate) {
    if (delegate.nodeNameEquals(ele, IMPORT_ELEMENT)) {
        importBeanDefinitionResource(ele);
    } else if (delegate.nodeNameEquals(ele, ALIAS_ELEMENT)) {
        processAliasRegistration(ele);/*from   w w w  .  j av a  2s .  c  om*/
    } else if (delegate.nodeNameEquals(ele, BEAN_ELEMENT)) {
        processBeanDefinition(ele, delegate);
    } else if (delegate.nodeNameEquals(ele, NESTED_BEANS_ELEMENT)) {
        // recurse
        doRegisterBeanDefinitions(ele);
    }
}