Spring Integration

org.springframework.integration.config.xml
Class AbstractOutboundChannelAdapterParser

java.lang.Object
  extended by org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
      extended by org.springframework.integration.config.xml.AbstractChannelAdapterParser
          extended by org.springframework.integration.config.xml.AbstractOutboundChannelAdapterParser
All Implemented Interfaces:
BeanDefinitionParser
Direct Known Subclasses:
ConsoleOutboundChannelAdapterParser, EventOutboundChannelAdapterParser, FileOutboundChannelAdapterParser, FtpMessageSendingConsumerBeanDefinitionParser, FtpsMessageSendingConsumerBeanDefinitionParser, HttpOutboundChannelAdapterParser, JdbcMessageHandlerParser, JmsOutboundChannelAdapterParser, LoggingChannelAdapterParser, MailOutboundChannelAdapterParser, MethodInvokingOutboundChannelAdapterParser, NotificationPublishingChannelAdapterParser, OperationInvokingChannelAdapterParser, TcpOutboundChannelAdapterParser, UdpOutboundChannelAdapterParser

public abstract class AbstractOutboundChannelAdapterParser
extends AbstractChannelAdapterParser

Base class for outbound Channel Adapter parsers.

Author:
Mark Fisher

Field Summary
 
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE
 
Constructor Summary
AbstractOutboundChannelAdapterParser()
           
 
Method Summary
protected  AbstractBeanDefinition doParse(Element element, ParserContext parserContext, String channelName)
          Subclasses must implement this method to parse the adapter element.
protected  String parseAndRegisterConsumer(Element element, ParserContext parserContext)
          Override this method to control the registration process and return the bean name.
protected abstract  AbstractBeanDefinition parseConsumer(Element element, ParserContext parserContext)
          Override this method to return the BeanDefinition for the MessageConsumer.
 
Methods inherited from class org.springframework.integration.config.xml.AbstractChannelAdapterParser
parseInternal, resolveId
 
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
 

Constructor Detail

AbstractOutboundChannelAdapterParser

public AbstractOutboundChannelAdapterParser()
Method Detail

doParse

protected AbstractBeanDefinition doParse(Element element,
                                         ParserContext parserContext,
                                         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 String parseAndRegisterConsumer(Element element,
                                          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 AbstractBeanDefinition parseConsumer(Element element,
                                                        ParserContext parserContext)
Override this method to return the BeanDefinition for the MessageConsumer. It will be registered with a generated name.


Spring Integration

Copyright © 2010. All Rights Reserved.