Class AbstractPollingInboundChannelAdapterParser
java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.integration.config.xml.AbstractChannelAdapterParser
org.springframework.integration.config.xml.AbstractPollingInboundChannelAdapterParser
- All Implemented Interfaces:
org.springframework.beans.factory.xml.BeanDefinitionParser
- Direct Known Subclasses:
DefaultInboundChannelAdapterParser,ResourceInboundChannelAdapterParser
public abstract class AbstractPollingInboundChannelAdapterParser extends AbstractChannelAdapterParser
Base parser for inbound Channel Adapters that poll a source.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AbstractPollingInboundChannelAdapterParser() -
Method Summary
Modifier and Type Method Description protected org.springframework.beans.factory.support.AbstractBeanDefinitiondoParse(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 abstract org.springframework.beans.BeanMetadataElementparseSource(org.w3c.dom.Element element, org.springframework.beans.factory.xml.ParserContext parserContext)Subclasses must implement this method to parse the PollableSource instance which the created Channel Adapter will poll.Methods inherited from class org.springframework.integration.config.xml.AbstractChannelAdapterParser
parseInternal, resolveId
-
Constructor Details
-
AbstractPollingInboundChannelAdapterParser
public AbstractPollingInboundChannelAdapterParser()
-
-
Method Details
-
doParse
protected org.springframework.beans.factory.support.AbstractBeanDefinition doParse(org.w3c.dom.Element element, org.springframework.beans.factory.xml.ParserContext parserContext, java.lang.String channelName)Description copied from class:AbstractChannelAdapterParserSubclasses must implement this method to parse the adapter element. The name of the MessageChannel bean is provided.- Specified by:
doParsein classAbstractChannelAdapterParser- Parameters:
element- The element.parserContext- The parser context.channelName- The channel name.- Returns:
- The bean definition.
-
parseSource
protected abstract org.springframework.beans.BeanMetadataElement parseSource(org.w3c.dom.Element element, org.springframework.beans.factory.xml.ParserContext parserContext)Subclasses must implement this method to parse the PollableSource instance which the created Channel Adapter will poll.- Parameters:
element- The element.parserContext- The parser context.- Returns:
- The bean metadata element.
-