public class

BeanDefinitionParserDelegate

extends Object
java.lang.Object
   ↳ org.springframework.beans.factory.xml.BeanDefinitionParserDelegate

Class Overview

Stateful delegate class used to parse XML bean definitions. Intended for use by both the main parser and any extension BeanDefinitionParsers or BeanDefinitionDecorators.

Summary

Constants
String ABSTRACT_ATTRIBUTE
String ARG_TYPE_ELEMENT
String ARG_TYPE_MATCH_ATTRIBUTE
String ARRAY_ELEMENT
String AUTOWIRE_ATTRIBUTE
String AUTOWIRE_AUTODETECT_VALUE
String AUTOWIRE_BY_NAME_VALUE
String AUTOWIRE_BY_TYPE_VALUE
String AUTOWIRE_CANDIDATE_ATTRIBUTE
String AUTOWIRE_CONSTRUCTOR_VALUE
String AUTOWIRE_NO_VALUE
String BEANS_NAMESPACE_URI
String BEAN_ELEMENT
String BEAN_NAME_DELIMITERS
String BEAN_REF_ATTRIBUTE
String CLASS_ATTRIBUTE
String CONSTRUCTOR_ARG_ELEMENT
String DEFAULT_AUTOWIRE_ATTRIBUTE
String DEFAULT_AUTOWIRE_CANDIDATES_ATTRIBUTE
String DEFAULT_DEPENDENCY_CHECK_ATTRIBUTE
String DEFAULT_DESTROY_METHOD_ATTRIBUTE
String DEFAULT_INIT_METHOD_ATTRIBUTE
String DEFAULT_LAZY_INIT_ATTRIBUTE
String DEFAULT_MERGE_ATTRIBUTE
String DEFAULT_VALUE
String DEPENDENCY_CHECK_ALL_ATTRIBUTE_VALUE
String DEPENDENCY_CHECK_ATTRIBUTE
String DEPENDENCY_CHECK_OBJECTS_ATTRIBUTE_VALUE
String DEPENDENCY_CHECK_SIMPLE_ATTRIBUTE_VALUE
String DEPENDS_ON_ATTRIBUTE
String DESCRIPTION_ELEMENT
String DESTROY_METHOD_ATTRIBUTE
String ENTRY_ELEMENT
String FACTORY_BEAN_ATTRIBUTE
String FACTORY_METHOD_ATTRIBUTE
String FALSE_VALUE
String IDREF_ELEMENT
String ID_ATTRIBUTE
String INDEX_ATTRIBUTE
String INIT_METHOD_ATTRIBUTE
String KEY_ATTRIBUTE
String KEY_ELEMENT
String KEY_REF_ATTRIBUTE
String KEY_TYPE_ATTRIBUTE
String LAZY_INIT_ATTRIBUTE
String LIST_ELEMENT
String LOCAL_REF_ATTRIBUTE
String LOOKUP_METHOD_ELEMENT
String MAP_ELEMENT
String MERGE_ATTRIBUTE
String META_ELEMENT
String NAME_ATTRIBUTE
String NULL_ELEMENT
String PARENT_ATTRIBUTE
String PARENT_REF_ATTRIBUTE
String PRIMARY_ATTRIBUTE
String PROPERTY_ELEMENT
String PROPS_ELEMENT
String PROP_ELEMENT
String QUALIFIER_ATTRIBUTE_ELEMENT
String QUALIFIER_ELEMENT
String REF_ATTRIBUTE
String REF_ELEMENT
String REPLACED_METHOD_ELEMENT
String REPLACER_ATTRIBUTE
String SCOPE_ATTRIBUTE
String SET_ELEMENT
String SINGLETON_ATTRIBUTE
String TRUE_VALUE Value of a T/F attribute that represents true.
String TYPE_ATTRIBUTE
String VALUE_ATTRIBUTE
String VALUE_ELEMENT
String VALUE_REF_ATTRIBUTE
String VALUE_TYPE_ATTRIBUTE
Fields
protected final Log logger
Public Constructors
BeanDefinitionParserDelegate(XmlReaderContext readerContext, Environment environment)
Create a new BeanDefinitionParserDelegate associated with the supplied XmlReaderContext and Environment.
BeanDefinitionParserDelegate(XmlReaderContext readerContext)
This constructor is deprecated. since Spring 3.1 in favor of BeanDefinitionParserDelegate(XmlReaderContext, Environment)
Public Methods
BeanDefinitionHolder decorateBeanDefinitionIfRequired(Element ele, BeanDefinitionHolder definitionHolder, BeanDefinition containingBd)
BeanDefinitionHolder decorateBeanDefinitionIfRequired(Element ele, BeanDefinitionHolder definitionHolder)
String[] getAutowireCandidatePatterns()
Return any patterns provided in the 'default-autowire-candidates' attribute of the top-level <beans/> element.
int getAutowireMode(String attValue)
BeanDefinitionDefaults getBeanDefinitionDefaults()
Return the default settings for bean definitions as indicated within the attributes of the top-level <beans/> element.
DocumentDefaultsDefinition getDefaults()
Return the defaults definition object, or null if the defaults have been initialized yet.
int getDependencyCheck(String attValue)
final Environment getEnvironment()
Get the Environment associated with this helper instance.
String getLocalName(Node node)
Ges the local name for the supplied Node.
String getNamespaceURI(Node node)
Get the namespace URI for the supplied node.
final XmlReaderContext getReaderContext()
Get the XmlReaderContext associated with this helper instance.
void initDefaults(Element root, BeanDefinitionParserDelegate parent)
Initialize the default lazy-init, autowire, dependency check settings, init-method, destroy-method and merge settings.
void initDefaults(Element root)
This method is deprecated. in Spring 3.1 in favor of initDefaults(Element, BeanDefinitionParserDelegate)
boolean isDefaultNamespace(Node node)
boolean isDefaultNamespace(String namespaceUri)
boolean nodeNameEquals(Node node, String desiredName)
Determine whether the name of the supplied node is equal to the supplied name.
Object parseArrayElement(Element arrayEle, BeanDefinition bd)
Parse an array element.
AbstractBeanDefinition parseBeanDefinitionAttributes(Element ele, String beanName, BeanDefinition containingBean, AbstractBeanDefinition bd)
Apply the attributes of the given bean element to the given bean * definition.
AbstractBeanDefinition parseBeanDefinitionElement(Element ele, String beanName, BeanDefinition containingBean)
Parse the bean definition itself, without regard to name or aliases.
BeanDefinitionHolder parseBeanDefinitionElement(Element ele, BeanDefinition containingBean)
Parses the supplied <bean> element.
BeanDefinitionHolder parseBeanDefinitionElement(Element ele)
Parses the supplied <bean> element.
void parseConstructorArgElement(Element ele, BeanDefinition bd)
Parse a constructor-arg element.
void parseConstructorArgElements(Element beanEle, BeanDefinition bd)
Parse constructor-arg sub-elements of the given bean element.
BeanDefinition parseCustomElement(Element ele, BeanDefinition containingBd)
BeanDefinition parseCustomElement(Element ele)
Object parseIdRefElement(Element ele)
Return a typed String value Object for the given 'idref' element.
List parseListElement(Element collectionEle, BeanDefinition bd)
Parse a list element.
void parseLookupOverrideSubElements(Element beanEle, MethodOverrides overrides)
Parse lookup-override sub-elements of the given bean element.
Map parseMapElement(Element mapEle, BeanDefinition bd)
Parse a map element.
boolean parseMergeAttribute(Element collectionElement)
Parse the merge attribute of a collection element, if any.
void parseMetaElements(Element ele, BeanMetadataAttributeAccessor attributeAccessor)
void parsePropertyElement(Element ele, BeanDefinition bd)
Parse a property element.
void parsePropertyElements(Element beanEle, BeanDefinition bd)
Parse property sub-elements of the given bean element.
Object parsePropertySubElement(Element ele, BeanDefinition bd, String defaultValueType)
Parse a value, ref or collection sub-element of a property or constructor-arg element.
Object parsePropertySubElement(Element ele, BeanDefinition bd)
Object parsePropertyValue(Element ele, BeanDefinition bd, String propertyName)
Get the value of a property element.
Properties parsePropsElement(Element propsEle)
Parse a props element.
void parseQualifierElement(Element ele, AbstractBeanDefinition bd)
Parse a qualifier element.
void parseQualifierElements(Element beanEle, AbstractBeanDefinition bd)
Parse qualifier sub-elements of the given bean element.
void parseReplacedMethodSubElements(Element beanEle, MethodOverrides overrides)
Parse replaced-method sub-elements of the given bean element.
Set parseSetElement(Element collectionEle, BeanDefinition bd)
Parse a set element.
Object parseValueElement(Element ele, String defaultTypeName)
Return a typed String value Object for the given value element.
Protected Methods
TypedStringValue buildTypedStringValue(String value, String targetTypeName)
Build a typed String value Object for the given raw value.
final Object buildTypedStringValueForMap(String value, String defaultTypeName, Element entryEle)
Build a typed String value Object for the given raw value.
void checkNameUniqueness(String beanName, List<String> aliases, Element beanElement)
Validate that the specified bean name and aliases have not been used already within the current level of beans element nesting.
AbstractBeanDefinition createBeanDefinition(String className, String parentName)
Create a bean definition for the given class name and parent name.
void error(String message, Element source)
Report an error with the given message for the given source element.
void error(String message, Node source)
Report an error with the given message for the given source element.
void error(String message, Element source, Throwable cause)
Report an error with the given message for the given source element.
Object extractSource(Element ele)
Invoke the SourceExtractor to pull the source metadata from the supplied Element.
void parseCollectionElements(NodeList elementNodes, Collection<Object> target, BeanDefinition bd, String defaultElementType)
Object parseKeyElement(Element keyEle, BeanDefinition bd, String defaultKeyTypeName)
Parse a key sub-element of a map element.
void populateDefaults(DocumentDefaultsDefinition defaults, DocumentDefaultsDefinition parentDefaults, Element root)
Populate the given DocumentDefaultsDefinition instance with the default lazy-init, autowire, dependency check settings, init-method, destroy-method and merge settings.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String ABSTRACT_ATTRIBUTE

Also: SpringBeans

Constant Value: "abstract"

public static final String ARG_TYPE_ELEMENT

Also: SpringBeans

Constant Value: "arg-type"

public static final String ARG_TYPE_MATCH_ATTRIBUTE

Also: SpringBeans

Constant Value: "match"

public static final String ARRAY_ELEMENT

Also: SpringBeans

Constant Value: "array"

public static final String AUTOWIRE_ATTRIBUTE

Also: SpringBeans

Constant Value: "autowire"

public static final String AUTOWIRE_AUTODETECT_VALUE

Also: SpringBeans

Constant Value: "autodetect"

public static final String AUTOWIRE_BY_NAME_VALUE

Also: SpringBeans

Constant Value: "byName"

public static final String AUTOWIRE_BY_TYPE_VALUE

Also: SpringBeans

Constant Value: "byType"

public static final String AUTOWIRE_CANDIDATE_ATTRIBUTE

Also: SpringBeans

Constant Value: "autowire-candidate"

public static final String AUTOWIRE_CONSTRUCTOR_VALUE

Also: SpringBeans

Constant Value: "constructor"

public static final String AUTOWIRE_NO_VALUE

Also: SpringBeans

Constant Value: "no"

public static final String BEANS_NAMESPACE_URI

Also: SpringBeans

Constant Value: "http://www.springframework.org/schema/beans"

public static final String BEAN_ELEMENT

Also: SpringBeans

Constant Value: "bean"

public static final String BEAN_NAME_DELIMITERS

Also: SpringBeans

Constant Value: ",; "

public static final String BEAN_REF_ATTRIBUTE

Also: SpringBeans

Constant Value: "bean"

public static final String CLASS_ATTRIBUTE

Also: SpringBeans

Constant Value: "class"

public static final String CONSTRUCTOR_ARG_ELEMENT

Also: SpringBeans

Constant Value: "constructor-arg"

public static final String DEFAULT_AUTOWIRE_ATTRIBUTE

Also: SpringBeans

Constant Value: "default-autowire"

public static final String DEFAULT_AUTOWIRE_CANDIDATES_ATTRIBUTE

Also: SpringBeans

Constant Value: "default-autowire-candidates"

public static final String DEFAULT_DEPENDENCY_CHECK_ATTRIBUTE

Also: SpringBeans

Constant Value: "default-dependency-check"

public static final String DEFAULT_DESTROY_METHOD_ATTRIBUTE

Also: SpringBeans

Constant Value: "default-destroy-method"

public static final String DEFAULT_INIT_METHOD_ATTRIBUTE

Also: SpringBeans

Constant Value: "default-init-method"

public static final String DEFAULT_LAZY_INIT_ATTRIBUTE

Also: SpringBeans

Constant Value: "default-lazy-init"

public static final String DEFAULT_MERGE_ATTRIBUTE

Also: SpringBeans

Constant Value: "default-merge"

public static final String DEFAULT_VALUE

Also: SpringBeans

Constant Value: "default"

public static final String DEPENDENCY_CHECK_ALL_ATTRIBUTE_VALUE

Also: SpringBeans

Constant Value: "all"

public static final String DEPENDENCY_CHECK_ATTRIBUTE

Also: SpringBeans

Constant Value: "dependency-check"

public static final String DEPENDENCY_CHECK_OBJECTS_ATTRIBUTE_VALUE

Also: SpringBeans

Constant Value: "objects"

public static final String DEPENDENCY_CHECK_SIMPLE_ATTRIBUTE_VALUE

Also: SpringBeans

Constant Value: "simple"

public static final String DEPENDS_ON_ATTRIBUTE

Also: SpringBeans

Constant Value: "depends-on"

public static final String DESCRIPTION_ELEMENT

Also: SpringBeans

Constant Value: "description"

public static final String DESTROY_METHOD_ATTRIBUTE

Also: SpringBeans

Constant Value: "destroy-method"

public static final String ENTRY_ELEMENT

Also: SpringBeans

Constant Value: "entry"

public static final String FACTORY_BEAN_ATTRIBUTE

Also: SpringBeans

Constant Value: "factory-bean"

public static final String FACTORY_METHOD_ATTRIBUTE

Also: SpringBeans

Constant Value: "factory-method"

public static final String FALSE_VALUE

Also: SpringBeans

Constant Value: "false"

public static final String IDREF_ELEMENT

Also: SpringBeans

Constant Value: "idref"

public static final String ID_ATTRIBUTE

Also: SpringBeans

Constant Value: "id"

public static final String INDEX_ATTRIBUTE

Also: SpringBeans

Constant Value: "index"

public static final String INIT_METHOD_ATTRIBUTE

Also: SpringBeans

Constant Value: "init-method"

public static final String KEY_ATTRIBUTE

Also: SpringBeans

Constant Value: "key"

public static final String KEY_ELEMENT

Also: SpringBeans

Constant Value: "key"

public static final String KEY_REF_ATTRIBUTE

Also: SpringBeans

Constant Value: "key-ref"

public static final String KEY_TYPE_ATTRIBUTE

Also: SpringBeans

Constant Value: "key-type"

public static final String LAZY_INIT_ATTRIBUTE

Also: SpringBeans

Constant Value: "lazy-init"

public static final String LIST_ELEMENT

Also: SpringBeans

Constant Value: "list"

public static final String LOCAL_REF_ATTRIBUTE

Also: SpringBeans

Constant Value: "local"

public static final String LOOKUP_METHOD_ELEMENT

Also: SpringBeans

Constant Value: "lookup-method"

public static final String MAP_ELEMENT

Also: SpringBeans

Constant Value: "map"

public static final String MERGE_ATTRIBUTE

Also: SpringBeans

Constant Value: "merge"

public static final String META_ELEMENT

Also: SpringBeans

Constant Value: "meta"

public static final String NAME_ATTRIBUTE

Also: SpringBeans

Constant Value: "name"

public static final String NULL_ELEMENT

Also: SpringBeans

Constant Value: "null"

public static final String PARENT_ATTRIBUTE

Also: SpringBeans

Constant Value: "parent"

public static final String PARENT_REF_ATTRIBUTE

Also: SpringBeans

Constant Value: "parent"

public static final String PRIMARY_ATTRIBUTE

Also: SpringBeans

Constant Value: "primary"

public static final String PROPERTY_ELEMENT

Also: SpringBeans

Constant Value: "property"

public static final String PROPS_ELEMENT

Also: SpringBeans

Constant Value: "props"

public static final String PROP_ELEMENT

Also: SpringBeans

Constant Value: "prop"

public static final String QUALIFIER_ATTRIBUTE_ELEMENT

Also: SpringBeans

Constant Value: "attribute"

public static final String QUALIFIER_ELEMENT

Also: SpringBeans

Constant Value: "qualifier"

public static final String REF_ATTRIBUTE

Also: SpringBeans

Constant Value: "ref"

public static final String REF_ELEMENT

Also: SpringBeans

Constant Value: "ref"

public static final String REPLACED_METHOD_ELEMENT

Also: SpringBeans

Constant Value: "replaced-method"

public static final String REPLACER_ATTRIBUTE

Also: SpringBeans

Constant Value: "replacer"

public static final String SCOPE_ATTRIBUTE

Also: SpringBeans

Constant Value: "scope"

public static final String SET_ELEMENT

Also: SpringBeans

Constant Value: "set"

public static final String SINGLETON_ATTRIBUTE

Also: SpringBeans

Constant Value: "singleton"

public static final String TRUE_VALUE

Also: SpringBeans

Value of a T/F attribute that represents true. Anything else represents false. Case seNsItive.

Constant Value: "true"

public static final String TYPE_ATTRIBUTE

Also: SpringBeans

Constant Value: "type"

public static final String VALUE_ATTRIBUTE

Also: SpringBeans

Constant Value: "value"

public static final String VALUE_ELEMENT

Also: SpringBeans

Constant Value: "value"

public static final String VALUE_REF_ATTRIBUTE

Also: SpringBeans

Constant Value: "value-ref"

public static final String VALUE_TYPE_ATTRIBUTE

Also: SpringBeans

Constant Value: "value-type"

Fields

protected final Log logger

Also: SpringBeans

Public Constructors

public BeanDefinitionParserDelegate (XmlReaderContext readerContext, Environment environment)

Create a new BeanDefinitionParserDelegate associated with the supplied XmlReaderContext and Environment.

public BeanDefinitionParserDelegate (XmlReaderContext readerContext)

Also: SpringBeans

This constructor is deprecated.
since Spring 3.1 in favor of BeanDefinitionParserDelegate(XmlReaderContext, Environment)

Create a new BeanDefinitionParserDelegate associated with the supplied XmlReaderContext and a new DefaultEnvironment.

Public Methods

public BeanDefinitionHolder decorateBeanDefinitionIfRequired (Element ele, BeanDefinitionHolder definitionHolder, BeanDefinition containingBd)

Also: SpringBeans

public BeanDefinitionHolder decorateBeanDefinitionIfRequired (Element ele, BeanDefinitionHolder definitionHolder)

Also: SpringBeans

public String[] getAutowireCandidatePatterns ()

Also: SpringBeans

Return any patterns provided in the 'default-autowire-candidates' attribute of the top-level <beans/> element.

public int getAutowireMode (String attValue)

Also: SpringBeans

public BeanDefinitionDefaults getBeanDefinitionDefaults ()

Also: SpringBeans

Return the default settings for bean definitions as indicated within the attributes of the top-level <beans/> element.

public DocumentDefaultsDefinition getDefaults ()

Also: SpringBeans

Return the defaults definition object, or null if the defaults have been initialized yet.

public int getDependencyCheck (String attValue)

Also: SpringBeans

public final Environment getEnvironment ()

Also: SpringBeans

Get the Environment associated with this helper instance.

public String getLocalName (Node node)

Also: SpringBeans

Ges the local name for the supplied Node. The default implementation calls getLocalName(). Subclasses may override the default implementation to provide a different mechanism for getting the local name.

Parameters
node the Node

public String getNamespaceURI (Node node)

Also: SpringBeans

Get the namespace URI for the supplied node. The default implementation uses getNamespaceURI(). Subclasses may override the default implementation to provide a different namespace identification mechanism.

Parameters
node the node

public final XmlReaderContext getReaderContext ()

Also: SpringBeans

Get the XmlReaderContext associated with this helper instance.

public void initDefaults (Element root, BeanDefinitionParserDelegate parent)

Also: SpringBeans

Initialize the default lazy-init, autowire, dependency check settings, init-method, destroy-method and merge settings. Support nested 'beans' element use cases by falling back to the given parent in case the defaults are not explicitly set locally.

public void initDefaults (Element root)

Also: SpringBeans

This method is deprecated.
in Spring 3.1 in favor of initDefaults(Element, BeanDefinitionParserDelegate)

Initialize the default settings assuming a null parent delegate.

public boolean isDefaultNamespace (Node node)

Also: SpringBeans

public boolean isDefaultNamespace (String namespaceUri)

Also: SpringBeans

public boolean nodeNameEquals (Node node, String desiredName)

Also: SpringBeans

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

The default implementation checks the supplied desired name against both getNodeName() and getLocalName().

Subclasses may override the default implementation to provide a different mechanism for comparing node names.

Parameters
node the node to compare
desiredName the name to check for

public Object parseArrayElement (Element arrayEle, BeanDefinition bd)

Also: SpringBeans

Parse an array element.

public AbstractBeanDefinition parseBeanDefinitionAttributes (Element ele, String beanName, BeanDefinition containingBean, AbstractBeanDefinition bd)

Also: SpringBeans

Apply the attributes of the given bean element to the given bean * definition.

Parameters
ele bean declaration element
beanName bean name
containingBean containing bean definition
Returns
  • a bean definition initialized according to the bean element attributes

public AbstractBeanDefinition parseBeanDefinitionElement (Element ele, String beanName, BeanDefinition containingBean)

Also: SpringBeans

Parse the bean definition itself, without regard to name or aliases. May return null if problems occured during the parse of the bean definition.

public BeanDefinitionHolder parseBeanDefinitionElement (Element ele, BeanDefinition containingBean)

Also: SpringBeans

Parses the supplied <bean> element. May return null if there were errors during parse. Errors are reported to the ProblemReporter.

public BeanDefinitionHolder parseBeanDefinitionElement (Element ele)

Also: SpringBeans

Parses the supplied <bean> element. May return null if there were errors during parse. Errors are reported to the ProblemReporter.

public void parseConstructorArgElement (Element ele, BeanDefinition bd)

Also: SpringBeans

Parse a constructor-arg element.

public void parseConstructorArgElements (Element beanEle, BeanDefinition bd)

Also: SpringBeans

Parse constructor-arg sub-elements of the given bean element.

public BeanDefinition parseCustomElement (Element ele, BeanDefinition containingBd)

Also: SpringBeans

public BeanDefinition parseCustomElement (Element ele)

Also: SpringBeans

public Object parseIdRefElement (Element ele)

Also: SpringBeans

Return a typed String value Object for the given 'idref' element.

public List parseListElement (Element collectionEle, BeanDefinition bd)

Also: SpringBeans

Parse a list element.

public void parseLookupOverrideSubElements (Element beanEle, MethodOverrides overrides)

Also: SpringBeans

Parse lookup-override sub-elements of the given bean element.

public Map parseMapElement (Element mapEle, BeanDefinition bd)

Also: SpringBeans

Parse a map element.

public boolean parseMergeAttribute (Element collectionElement)

Also: SpringBeans

Parse the merge attribute of a collection element, if any.

public void parseMetaElements (Element ele, BeanMetadataAttributeAccessor attributeAccessor)

Also: SpringBeans

public void parsePropertyElement (Element ele, BeanDefinition bd)

Also: SpringBeans

Parse a property element.

public void parsePropertyElements (Element beanEle, BeanDefinition bd)

Also: SpringBeans

Parse property sub-elements of the given bean element.

public Object parsePropertySubElement (Element ele, BeanDefinition bd, String defaultValueType)

Also: SpringBeans

Parse a value, ref or collection sub-element of a property or constructor-arg element.

Parameters
ele subelement of property element; we don't know which yet
defaultValueType the default type (class name) for any <value> tag that might be created

public Object parsePropertySubElement (Element ele, BeanDefinition bd)

Also: SpringBeans

public Object parsePropertyValue (Element ele, BeanDefinition bd, String propertyName)

Also: SpringBeans

Get the value of a property element. May be a list etc. Also used for constructor arguments, "propertyName" being null in this case.

public Properties parsePropsElement (Element propsEle)

Also: SpringBeans

Parse a props element.

public void parseQualifierElement (Element ele, AbstractBeanDefinition bd)

Also: SpringBeans

Parse a qualifier element.

public void parseQualifierElements (Element beanEle, AbstractBeanDefinition bd)

Also: SpringBeans

Parse qualifier sub-elements of the given bean element.

public void parseReplacedMethodSubElements (Element beanEle, MethodOverrides overrides)

Also: SpringBeans

Parse replaced-method sub-elements of the given bean element.

public Set parseSetElement (Element collectionEle, BeanDefinition bd)

Also: SpringBeans

Parse a set element.

public Object parseValueElement (Element ele, String defaultTypeName)

Also: SpringBeans

Return a typed String value Object for the given value element.

Protected Methods

protected TypedStringValue buildTypedStringValue (String value, String targetTypeName)

Also: SpringBeans

Build a typed String value Object for the given raw value.

See Also

protected final Object buildTypedStringValueForMap (String value, String defaultTypeName, Element entryEle)

Also: SpringBeans

Build a typed String value Object for the given raw value.

See Also

protected void checkNameUniqueness (String beanName, List<String> aliases, Element beanElement)

Also: SpringBeans

Validate that the specified bean name and aliases have not been used already within the current level of beans element nesting.

protected AbstractBeanDefinition createBeanDefinition (String className, String parentName)

Also: SpringBeans

Create a bean definition for the given class name and parent name.

Parameters
className the name of the bean class
parentName the name of the bean's parent bean
Returns
  • the newly created bean definition
Throws
ClassNotFoundException if bean class resolution was attempted but failed

protected void error (String message, Element source)

Also: SpringBeans

Report an error with the given message for the given source element.

protected void error (String message, Node source)

Also: SpringBeans

Report an error with the given message for the given source element.

protected void error (String message, Element source, Throwable cause)

Also: SpringBeans

Report an error with the given message for the given source element.

protected Object extractSource (Element ele)

Also: SpringBeans

Invoke the SourceExtractor to pull the source metadata from the supplied Element.

protected void parseCollectionElements (NodeList elementNodes, Collection<Object> target, BeanDefinition bd, String defaultElementType)

Also: SpringBeans

protected Object parseKeyElement (Element keyEle, BeanDefinition bd, String defaultKeyTypeName)

Also: SpringBeans

Parse a key sub-element of a map element.

protected void populateDefaults (DocumentDefaultsDefinition defaults, DocumentDefaultsDefinition parentDefaults, Element root)

Also: SpringBeans

Populate the given DocumentDefaultsDefinition instance with the default lazy-init, autowire, dependency check settings, init-method, destroy-method and merge settings. Support nested 'beans' element use cases by falling back to parentDefaults in case the defaults are not explicitly set locally.

Parameters
defaults the parent BeanDefinitionParserDelegate (if any) defaults to fall back to
root the root element of the current bean definition document (or nested beans element)