Class EnricherParser
java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.integration.config.xml.AbstractConsumerEndpointParser
org.springframework.integration.config.xml.EnricherParser
- All Implemented Interfaces:
org.springframework.beans.factory.xml.BeanDefinitionParser
public class EnricherParser extends AbstractConsumerEndpointParser
Parser for the 'enricher' element.
- Since:
- 2.1
-
Field Summary
Fields inherited from class org.springframework.integration.config.xml.AbstractConsumerEndpointParser
EXPRESSION_ATTRIBUTE, METHOD_ATTRIBUTE, REF_ATTRIBUTE
-
Constructor Summary
Constructors Constructor Description EnricherParser()
-
Method Summary
Modifier and Type Method Description protected org.springframework.beans.factory.support.BeanDefinitionBuilder
parseHandler(org.w3c.dom.Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
Parse the MessageHandler.protected boolean
replyChannelInChainAllowed(org.w3c.dom.Element element)
Override to allow 'reply-channel' within a chain, for components where it makes sense (e.g.Methods inherited from class org.springframework.integration.config.xml.AbstractConsumerEndpointParser
getInputChannelAttributeName, parseInternal, resolveId
-
Constructor Details
-
EnricherParser
public EnricherParser()
-
-
Method Details
-
parseHandler
protected org.springframework.beans.factory.support.BeanDefinitionBuilder parseHandler(org.w3c.dom.Element element, org.springframework.beans.factory.xml.ParserContext parserContext)Description copied from class:AbstractConsumerEndpointParser
Parse the MessageHandler.- Specified by:
parseHandler
in classAbstractConsumerEndpointParser
- Parameters:
element
- The element.parserContext
- The parser context.- Returns:
- The bean definition builder.
-
replyChannelInChainAllowed
protected boolean replyChannelInChainAllowed(org.w3c.dom.Element element)Description copied from class:AbstractConsumerEndpointParser
Override to allow 'reply-channel' within a chain, for components where it makes sense (e.g. enricher). Default is false for outbound gateways, else true.- Overrides:
replyChannelInChainAllowed
in classAbstractConsumerEndpointParser
- Parameters:
element
- the element.- Returns:
- true to allow a reply channel attribute within a chain.
-