Package org.dellroad.stuff.spring
Class AbstractBeanDefinitionParser
java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.dellroad.stuff.spring.AbstractBeanDefinitionParser
- All Implemented Interfaces:
BeanDefinitionParser
Support superclass for
BeanDefinitionParser
implementations.-
Field Summary
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractBeanDefinition
createBeanDefinition
(Class<?> beanClass, Element element, ParserContext parserContext) Create a new bean definition.protected void
error
(Element element, ParserContext parserContext, String message) Report an error and throw an exception.protected void
parseStandardAttributes
(AbstractBeanDefinition beanDefinition, Element element, ParserContext parserContext) Parse the standard Spring bean attributes such asscope
,depends-on
,abstract
, etc.Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, parseInternal, postProcessComponentDefinition, registerBeanDefinition, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
-
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 typeelement
- the element that the new bean definition is associated withparserContext
- parser context- Returns:
- new bean definition
-
parseStandardAttributes
protected void parseStandardAttributes(AbstractBeanDefinition beanDefinition, Element element, ParserContext parserContext) Parse the standard Spring bean attributes such asscope
,depends-on
,abstract
, etc.- Parameters:
beanDefinition
- bean definition to modifyelement
- the XML element on which to look for attributesparserContext
- parser context
-
error
Report an error and throw an exception.- Parameters:
element
- XML elementparserContext
- parser contextmessage
- error message
-