| java.lang.Object | |
| ↳ | org.springframework.beans.factory.xml.NamespaceHandlerSupport |
Known Direct Subclasses
|
Support class for implementing custom NamespaceHandlers.
Parsing and decorating of individual Nodes is done via BeanDefinitionParser
and BeanDefinitionDecorator strategy interfaces, respectively.
Provides the registerBeanDefinitionParser(String, BeanDefinitionParser) and registerBeanDefinitionDecorator(String, BeanDefinitionDecorator)
methods for registering a BeanDefinitionParser or BeanDefinitionDecorator
to handle a specific element.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Decorates the supplied Node by delegating to the
BeanDefinitionDecorator that
is registered to handle that Node. | |||||||||||
Parses the supplied Element by delegating to the
BeanDefinitionParser that is
registered for that Element. | |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Subclasses can call this to register the supplied
BeanDefinitionDecorator to
handle the specified element. | |||||||||||
Subclasses can call this to register the supplied
BeanDefinitionDecorator to
handle the specified attribute. | |||||||||||
Subclasses can call this to register the supplied
BeanDefinitionParser to
handle the specified element. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.xml.NamespaceHandler
| |||||||||||
Decorates the supplied Node by delegating to the BeanDefinitionDecorator that
is registered to handle that Node.
| node | the source element or attribute that is to be parsed |
|---|---|
| definition | the current bean definition |
| parserContext | the object encapsulating the current state of the parsing process |
null value is strictly speaking invalid, but will be leniently
treated like the case where the original bean definition gets returned.
Parses the supplied Element by delegating to the BeanDefinitionParser that is
registered for that Element.
| element | the element that is to be parsed into one or more BeanDefinitions |
|---|---|
| parserContext | the object encapsulating the current state of the parsing process |
BeanDefinition (can be null as explained above)
Subclasses can call this to register the supplied BeanDefinitionDecorator to
handle the specified element. The element name is the local (non-namespace qualified)
name.
Subclasses can call this to register the supplied BeanDefinitionDecorator to
handle the specified attribute. The attribute name is the local (non-namespace qualified)
name.
Subclasses can call this to register the supplied BeanDefinitionParser to
handle the specified element. The element name is the local (non-namespace qualified)
name.