Class AbstractBeanDefinitionParser

java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.dellroad.stuff.spring.AbstractBeanDefinitionParser
All Implemented Interfaces:
BeanDefinitionParser

public abstract class AbstractBeanDefinitionParser extends AbstractBeanDefinitionParser
Support superclass for BeanDefinitionParser implementations.
  • Constructor Details

    • AbstractBeanDefinitionParser

      public AbstractBeanDefinitionParser()
  • Method Details

    • createBeanDefinition

      protected AbstractBeanDefinition createBeanDefinition(Class<?> beanClass, Element element, ParserContext parserContext)
      Create a new bean definition.
      Parameters:
      beanClass - bean type
      element - the element that the new bean definition is associated with
      parserContext - parser context
      Returns:
      new bean definition
    • parseStandardAttributes

      protected void parseStandardAttributes(AbstractBeanDefinition beanDefinition, Element element, ParserContext parserContext)
      Parse the standard Spring bean attributes such as scope, depends-on, abstract, etc.
      Parameters:
      beanDefinition - bean definition to modify
      element - the XML element on which to look for attributes
      parserContext - parser context
    • error

      protected void error(Element element, ParserContext parserContext, String message)
      Report an error and throw an exception.
      Parameters:
      element - XML element
      parserContext - parser context
      message - error message