org.springframework.integration.config.xml
Class AbstractOutboundChannelAdapterParser
java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.integration.config.xml.AbstractChannelAdapterParser
org.springframework.integration.config.xml.AbstractOutboundChannelAdapterParser
- All Implemented Interfaces:
- org.springframework.beans.factory.xml.BeanDefinitionParser
- Direct Known Subclasses:
- AbstractXmppOutboundChannelAdapterParser, AmqpOutboundChannelAdapterParser, ConsoleOutboundChannelAdapterParser, DefaultOutboundChannelAdapterParser, EventOutboundChannelAdapterParser, FileOutboundChannelAdapterParser, GemfireOutboundChannelAdapterParser, HttpOutboundChannelAdapterParser, JdbcMessageHandlerParser, JmsOutboundChannelAdapterParser, JpaOutboundChannelAdapterParser, LoggingChannelAdapterParser, MailOutboundChannelAdapterParser, NotificationPublishingChannelAdapterParser, OperationInvokingChannelAdapterParser, RedisOutboundChannelAdapterParser, RemoteFileOutboundChannelAdapterParser, StoredProcMessageHandlerParser, TcpOutboundChannelAdapterParser, TwitterOutboundChannelAdapterParser, UdpOutboundChannelAdapterParser
public abstract class AbstractOutboundChannelAdapterParser
- extends AbstractChannelAdapterParser
Base class for outbound Channel Adapter parsers.
If this component is defined as the top-level element in the Spring application context it will produce
an AbstractEndpoint
depending on the channel type.
If this component is defined as nested element (e.g., inside of the chain) it will produce
a MessageHandler
.
- Author:
- Mark Fisher, Gary Russell, Artem Bilan
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser |
ID_ATTRIBUTE, NAME_ATTRIBUTE |
Method Summary |
protected 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 java.lang.String |
parseAndRegisterConsumer(org.w3c.dom.Element element,
org.springframework.beans.factory.xml.ParserContext parserContext)
Override this method to control the registration process and return the bean name. |
protected abstract org.springframework.beans.factory.support.AbstractBeanDefinition |
parseConsumer(org.w3c.dom.Element element,
org.springframework.beans.factory.xml.ParserContext parserContext)
Override this method to return the BeanDefinition for the MessageConsumer. |
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser |
parse, postProcessComponentDefinition, registerBeanDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractOutboundChannelAdapterParser
public AbstractOutboundChannelAdapterParser()
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:
AbstractChannelAdapterParser
- Subclasses must implement this method to parse the adapter element.
The name of the MessageChannel bean is provided.
- Specified by:
doParse
in class AbstractChannelAdapterParser
parseAndRegisterConsumer
protected java.lang.String parseAndRegisterConsumer(org.w3c.dom.Element element,
org.springframework.beans.factory.xml.ParserContext parserContext)
- Override this method to control the registration process and return the bean name.
If parsing a bean definition whose name can be auto-generated, consider using
parseConsumer(Element, ParserContext)
instead.
parseConsumer
protected abstract org.springframework.beans.factory.support.AbstractBeanDefinition parseConsumer(org.w3c.dom.Element element,
org.springframework.beans.factory.xml.ParserContext parserContext)
- Override this method to return the BeanDefinition for the MessageConsumer. It will
be registered with a generated name.