java.lang.Object | |
↳ | org.springframework.beans.factory.xml.BeanDefinitionParserDelegate |
Stateful delegate class used to parse XML bean definitions.
Intended for use by both the main parser and any extension
BeanDefinitionParsers
or
BeanDefinitionDecorators
.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
logger |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new BeanDefinitionParserDelegate associated with the
supplied
XmlReaderContext and Environment . | |||||||||||
This constructor is deprecated.
since Spring 3.1 in favor of
BeanDefinitionParserDelegate(XmlReaderContext, Environment)
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return any patterns provided in the 'default-autowire-candidates'
attribute of the top-level
<beans/> element. | |||||||||||
Return the default settings for bean definitions as indicated within
the attributes of the top-level
<beans/> element. | |||||||||||
Return the defaults definition object, or
null if the
defaults have been initialized yet. | |||||||||||
Get the
Environment associated with this helper instance. | |||||||||||
Ges the local name for the supplied
Node . | |||||||||||
Get the namespace URI for the supplied node.
| |||||||||||
Get the
XmlReaderContext associated with this helper instance. | |||||||||||
Initialize the default lazy-init, autowire, dependency check settings,
init-method, destroy-method and merge settings.
| |||||||||||
This method is deprecated.
in Spring 3.1 in favor of
initDefaults(Element, BeanDefinitionParserDelegate)
| |||||||||||
Determine whether the name of the supplied node is equal to the supplied name.
| |||||||||||
Parse an array element.
| |||||||||||
Apply the attributes of the given bean element to the given bean * definition.
| |||||||||||
Parse the bean definition itself, without regard to name or aliases.
| |||||||||||
Parses the supplied
<bean> element. | |||||||||||
Parses the supplied
<bean> element. | |||||||||||
Parse a constructor-arg element.
| |||||||||||
Parse constructor-arg sub-elements of the given bean element.
| |||||||||||
Return a typed String value Object for the given 'idref' element.
| |||||||||||
Parse a list element.
| |||||||||||
Parse lookup-override sub-elements of the given bean element.
| |||||||||||
Parse a map element.
| |||||||||||
Parse the merge attribute of a collection element, if any.
| |||||||||||
Parse a property element.
| |||||||||||
Parse property sub-elements of the given bean element.
| |||||||||||
Parse a value, ref or collection sub-element of a property or
constructor-arg element.
| |||||||||||
Get the value of a property element.
| |||||||||||
Parse a props element.
| |||||||||||
Parse a qualifier element.
| |||||||||||
Parse qualifier sub-elements of the given bean element.
| |||||||||||
Parse replaced-method sub-elements of the given bean element.
| |||||||||||
Parse a set element.
| |||||||||||
Return a typed String value Object for the given value element.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Build a typed String value Object for the given raw value.
| |||||||||||
Build a typed String value Object for the given raw value.
| |||||||||||
Validate that the specified bean name and aliases have not been used already
within the current level of beans element nesting.
| |||||||||||
Create a bean definition for the given class name and parent name.
| |||||||||||
Report an error with the given message for the given source element.
| |||||||||||
Report an error with the given message for the given source element.
| |||||||||||
Report an error with the given message for the given source element.
| |||||||||||
Invoke the
SourceExtractor to pull the
source metadata from the supplied Element . | |||||||||||
Parse a key sub-element of a map element.
| |||||||||||
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
|
Value of a T/F attribute that represents true. Anything else represents false. Case seNsItive.
Create a new BeanDefinitionParserDelegate associated with the
supplied XmlReaderContext
and Environment
.
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
.
Return any patterns provided in the 'default-autowire-candidates'
attribute of the top-level <beans/>
element.
Return the default settings for bean definitions as indicated within
the attributes of the top-level <beans/>
element.
Return the defaults definition object, or null
if the
defaults have been initialized yet.
Get the Environment
associated with this helper instance.
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.
node | the Node
|
---|
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.
node | the node |
---|
Get the XmlReaderContext
associated with this helper instance.
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.
This method is deprecated.
in Spring 3.1 in favor of
initDefaults(Element, BeanDefinitionParserDelegate)
Initialize the default settings assuming a null
parent delegate.
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.
node | the node to compare |
---|---|
desiredName | the name to check for |
Parse an array element.
Apply the attributes of the given bean element to the given bean * definition.
ele | bean declaration element |
---|---|
beanName | bean name |
containingBean | containing bean definition |
Parse the bean definition itself, without regard to name or aliases. May return
null
if problems occured during the parse of the bean definition.
Parses the supplied <bean>
element. May return null
if there were errors during parse. Errors are reported to the
ProblemReporter
.
Parses the supplied <bean>
element. May return null
if there were errors during parse. Errors are reported to the
ProblemReporter
.
Parse a constructor-arg element.
Parse constructor-arg sub-elements of the given bean element.
Return a typed String value Object for the given 'idref' element.
Parse a list element.
Parse lookup-override sub-elements of the given bean element.
Parse a map element.
Parse the merge attribute of a collection element, if any.
Parse a property element.
Parse property sub-elements of the given bean element.
Parse a value, ref or collection sub-element of a property or constructor-arg element.
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
|
Get the value of a property element. May be a list etc. Also used for constructor arguments, "propertyName" being null in this case.
Parse a qualifier element.
Parse qualifier sub-elements of the given bean element.
Parse replaced-method sub-elements of the given bean element.
Parse a set element.
Return a typed String value Object for the given value element.
Build a typed String value Object for the given raw value.
Validate that the specified bean name and aliases have not been used already within the current level of beans element nesting.
Create a bean definition for the given class name and parent name.
className | the name of the bean class |
---|---|
parentName | the name of the bean's parent bean |
ClassNotFoundException | if bean class resolution was attempted but failed |
---|
Report an error with the given message for the given source element.
Report an error with the given message for the given source element.
Report an error with the given message for the given source element.
Invoke the SourceExtractor
to pull the
source metadata from the supplied Element
.
Parse a key sub-element of a map element.
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
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) |