public abstract class AbstractChannelAdapterParser
extends org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
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(org.w3c.dom.Element element,
org.springframework.beans.factory.xml.ParserContext parserContext,
java.lang.String channelName)
Subclasses must implement this method to parse the adapter element.
|
protected org.springframework.beans.factory.support.AbstractBeanDefinition |
parseInternal(org.w3c.dom.Element element,
org.springframework.beans.factory.xml.ParserContext parserContext) |
protected java.lang.String |
resolveId(org.w3c.dom.Element element,
org.springframework.beans.factory.support.AbstractBeanDefinition definition,
org.springframework.beans.factory.xml.ParserContext parserContext) |
protected final java.lang.String resolveId(org.w3c.dom.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(org.w3c.dom.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(org.w3c.dom.Element element, org.springframework.beans.factory.xml.ParserContext parserContext, java.lang.String channelName)