Class AbstractRouterParser
java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.integration.config.xml.AbstractConsumerEndpointParser
org.springframework.integration.config.xml.AbstractRouterParser
- All Implemented Interfaces:
BeanDefinitionParser
- Direct Known Subclasses:
ErrorMessageExceptionTypeRouterParser,HeaderValueRouterParser,PayloadTypeRouterParser,RecipientListRouterParser,XPathRouterParser
public abstract class AbstractRouterParser extends AbstractConsumerEndpointParser
Base parser for routers.
- Author:
- Mark Fisher, Gary Russell
-
Field Summary
Fields inherited from class org.springframework.integration.config.xml.AbstractConsumerEndpointParser
EXPRESSION_ATTRIBUTE, METHOD_ATTRIBUTE, REF_ATTRIBUTEFields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE -
Constructor Summary
Constructors Constructor Description AbstractRouterParser() -
Method Summary
Modifier and Type Method Description protected abstract BeanDefinitiondoParseRouter(Element element, ParserContext parserContext)protected StringgetMappingKeyAttributeName()Returns the name of the attribute that provides a key for the channel mappings.protected BeanDefinitionBuilderparseHandler(Element element, ParserContext parserContext)Parse the MessageHandler.protected BeanDefinitionparseRouter(Element element, ParserContext parserContext)Methods inherited from class org.springframework.integration.config.xml.AbstractConsumerEndpointParser
getInputChannelAttributeName, parseInternal, replyChannelInChainAllowed, resolveIdMethods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, registerBeanDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
-
Constructor Details
-
AbstractRouterParser
public AbstractRouterParser()
-
-
Method Details
-
parseHandler
Description copied from class:AbstractConsumerEndpointParserParse the MessageHandler.- Specified by:
parseHandlerin classAbstractConsumerEndpointParser- Parameters:
element- The element.parserContext- The parser context.- Returns:
- The bean definition builder.
-
parseRouter
-
getMappingKeyAttributeName
Returns the name of the attribute that provides a key for the channel mappings. This can be overridden by subclasses.- Returns:
- The mapping key attribute name.
-
doParseRouter
-