Top Description Constructors Methods
org.springframework.context.config

pack-priv abstract Class AbstractPropertyLoadingBeanDefinitionParser

extends AbstractSingleBeanDefinitionParser
Class Inheritance
Known Direct Subclasses
org.springframework.context.config.PropertyOverrideBeanDefinitionParser, org.springframework.context.config.PropertyPlaceholderBeanDefinitionParser
Imports
org.w3c.dom.Element, org.springframework.beans.factory.config.BeanDefinition, org.springframework.beans.factory.support.BeanDefinitionBuilder, org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser, .ParserContext, org.springframework.util.StringUtils

Abstract parser for <context:property-.../> elements.
Authors
Juergen Hoeller, Arjen Poutsma, Dave Syer
Since
2.5.2

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected void
doParse(Element
the XML element being parsed
element
,
ParserContext
the object encapsulating the current state of the parsing process
parserContext
,
BeanDefinitionBuilder
used to define the BeanDefinition
builder
)

Overrides org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser.doParse.

Parse the supplied Element and populate the supplied BeanDefinitionBuilder as required.

protected boolean
shouldGenerateId()

Overrides org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.shouldGenerateId.

Should an ID be generated instead of read from the passed in Element?

Inherited from org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser:
doParsegetBeanClassgetBeanClassNamegetParentNameparseInternal

Constructor Detail

AbstractPropertyLoadingBeanDefinitionParserback to summary
pack-priv AbstractPropertyLoadingBeanDefinitionParser()

Method Detail

doParseback to summary
protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder)

Overrides org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser.doParse.

Doc from org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser.doParse.

Parse the supplied Element and populate the supplied BeanDefinitionBuilder as required.

The default implementation delegates to the doParse version without ParserContext argument.

Parameters
element:Element

the XML element being parsed

parserContext:ParserContext

the object encapsulating the current state of the parsing process

builder:BeanDefinitionBuilder

used to define the BeanDefinition

Annotations
@Override
shouldGenerateIdback to summary
protected boolean shouldGenerateId()

Overrides org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.shouldGenerateId.

Doc from org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.shouldGenerateId.

Should an ID be generated instead of read from the passed in Element?

Disabled by default; subclasses can override this to enable ID generation. Note that this flag is about always generating an ID; the parser won't even check for an "id" attribute in this case.

Returns:boolean

whether the parser should always generate an id

Annotations
@Override