Top Description Fields Constructors Methods
org.springframework.context.config

pack-priv Class PropertyPlaceholderBeanDefinitionParser

extends AbstractPropertyLoadingBeanDefinitionParser
Class Inheritance
Imports
org.w3c.dom.Element, org.springframework.beans.factory.support.BeanDefinitionBuilder, org.springframework.beans.factory.xml.ParserContext, org.springframework.context.support.PropertySourcesPlaceholderConfigurer, org.springframework.util.StringUtils

Parser for the <context:property-placeholder/> element.
Authors
Juergen Hoeller, Dave Syer, Chris Beams
Since
2.5

Field Summary

Modifier and TypeField and Description
private static final String
private static final String

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.context.config.AbstractPropertyLoadingBeanDefinitionParser.doParse.

Parse the supplied Element and populate the supplied BeanDefinitionBuilder as required.
protected Class<?>
getBeanClass(Element
the Element that is being parsed
element
)

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

Determine the bean class corresponding to the supplied Element.
Inherited from org.springframework.context.config.AbstractPropertyLoadingBeanDefinitionParser:
shouldGenerateId

Field Detail

SYSTEM_PROPERTIES_MODE_ATTRIBUTEback to summary
private static final String SYSTEM_PROPERTIES_MODE_ATTRIBUTE
SYSTEM_PROPERTIES_MODE_DEFAULTback to summary
private static final String SYSTEM_PROPERTIES_MODE_DEFAULT

Constructor Detail

PropertyPlaceholderBeanDefinitionParserback to summary
pack-priv PropertyPlaceholderBeanDefinitionParser()

Method Detail

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

Overrides org.springframework.context.config.AbstractPropertyLoadingBeanDefinitionParser.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
getBeanClassback to summary
protected Class<?> getBeanClass(Element element)

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

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

Determine the bean class corresponding to the supplied Element.

Note that, for application classes, it is generally preferable to override getBeanClassName instead, in order to avoid a direct dependence on the bean implementation class. The BeanDefinitionParser and its NamespaceHandler can be used within an IDE plugin then, even if the application classes are not available on the plugin's classpath.

Parameters
element:Element

the Element that is being parsed

Returns:Class<?>

the Class of the bean that is being defined via parsing the supplied Element, or null if none

Annotations
@Override
@SuppressWarnings:deprecation