Class AbstractChannelParser
java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.integration.config.xml.AbstractChannelParser
- All Implemented Interfaces:
org.springframework.beans.factory.xml.BeanDefinitionParser
- Direct Known Subclasses:
PointToPointChannelParser,PublishSubscribeChannelParser
public abstract class AbstractChannelParser
extends org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
Base class for channel parsers.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AbstractChannelParser() -
Method Summary
Modifier and Type Method Description protected abstract org.springframework.beans.factory.support.BeanDefinitionBuilderbuildBeanDefinition(org.w3c.dom.Element element, org.springframework.beans.factory.xml.ParserContext parserContext)Subclasses must implement this method to create the bean definition.protected org.springframework.beans.factory.support.AbstractBeanDefinitionparseInternal(org.w3c.dom.Element element, org.springframework.beans.factory.xml.ParserContext parserContext)protected voidregisterBeanDefinition(org.springframework.beans.factory.config.BeanDefinitionHolder definition, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
-
Constructor Details
-
AbstractChannelParser
public AbstractChannelParser()
-
-
Method Details
-
parseInternal
protected org.springframework.beans.factory.support.AbstractBeanDefinition parseInternal(org.w3c.dom.Element element, org.springframework.beans.factory.xml.ParserContext parserContext)- Specified by:
parseInternalin classorg.springframework.beans.factory.xml.AbstractBeanDefinitionParser
-
registerBeanDefinition
protected void registerBeanDefinition(org.springframework.beans.factory.config.BeanDefinitionHolder definition, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)- Overrides:
registerBeanDefinitionin classorg.springframework.beans.factory.xml.AbstractBeanDefinitionParser
-
buildBeanDefinition
protected abstract org.springframework.beans.factory.support.BeanDefinitionBuilder buildBeanDefinition(org.w3c.dom.Element element, org.springframework.beans.factory.xml.ParserContext parserContext)Subclasses must implement this method to create the bean definition. The class must be defined, and any implementation-specific constructor arguments or properties should be configured. This base class will configure the interceptors including the 'datatype' interceptor if the 'datatype' attribute is defined on the channel element.- Parameters:
element- The element.parserContext- The parser context.- Returns:
- The bean definition builder.
-