Class AbstractChannelParser
java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.integration.config.xml.AbstractChannelParser
- All Implemented Interfaces:
BeanDefinitionParser
- Direct Known Subclasses:
AmqpChannelParser
,JmsChannelParser
,KafkaChannelParser
,PointToPointChannelParser
,PublishSubscribeChannelParser
,RedisChannelParser
Base class for channel parsers.
- Author:
- Mark Fisher, Dave Syer, Artem Bilan, Gary Russell
-
Field Summary
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract BeanDefinitionBuilder
buildBeanDefinition
(Element element, ParserContext parserContext) Subclasses must implement this method to create the bean definition.protected AbstractBeanDefinition
parseInternal
(Element element, ParserContext parserContext) protected void
registerBeanDefinition
(BeanDefinitionHolder definition, BeanDefinitionRegistry registry) Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
-
Constructor Details
-
AbstractChannelParser
public AbstractChannelParser()
-
-
Method Details
-
parseInternal
- Specified by:
parseInternal
in classAbstractBeanDefinitionParser
-
registerBeanDefinition
protected void registerBeanDefinition(BeanDefinitionHolder definition, BeanDefinitionRegistry registry) - Overrides:
registerBeanDefinition
in classAbstractBeanDefinitionParser
-
buildBeanDefinition
protected abstract BeanDefinitionBuilder buildBeanDefinition(Element element, 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.
-