public abstract class AbstractChannelAdapterParser
extends org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
Includes logic to determine MessageChannel
:
if 'channel' attribute is defined - uses its value as 'channelName';
if 'id' attribute is defined - creates DirectChannel
at runtime and uses id's value as 'channelName';
if current component is defined as nested element inside any other components e.g. <chain>
'id' and 'channel' attributes will be ignored and this component will not be parsed as
AbstractEndpoint
.
Constructor and Description |
---|
AbstractChannelAdapterParser() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.springframework.beans.factory.support.AbstractBeanDefinition |
doParse(Element element,
org.springframework.beans.factory.xml.ParserContext parserContext,
String channelName)
Subclasses must implement this method to parse the adapter element.
|
protected org.springframework.beans.factory.support.AbstractBeanDefinition |
parseInternal(Element element,
org.springframework.beans.factory.xml.ParserContext parserContext) |
protected String |
resolveId(Element element,
org.springframework.beans.factory.support.AbstractBeanDefinition definition,
org.springframework.beans.factory.xml.ParserContext parserContext) |
protected final String resolveId(Element element, org.springframework.beans.factory.support.AbstractBeanDefinition definition, org.springframework.beans.factory.xml.ParserContext parserContext) throws org.springframework.beans.factory.BeanDefinitionStoreException
resolveId
in class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.beans.factory.BeanDefinitionStoreException
protected final org.springframework.beans.factory.support.AbstractBeanDefinition parseInternal(Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
parseInternal
in class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
protected abstract org.springframework.beans.factory.support.AbstractBeanDefinition doParse(Element element, org.springframework.beans.factory.xml.ParserContext parserContext, String channelName)
element
- The element.parserContext
- The parser context.channelName
- The channel name.