public abstract class AbstractOutboundChannelAdapterParser extends AbstractChannelAdapterParser
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
.ID_ATTRIBUTE, NAME_ATTRIBUTE
Constructor and Description |
---|
AbstractOutboundChannelAdapterParser() |
Modifier and Type | Method and Description |
---|---|
protected AbstractBeanDefinition |
doParse(Element element,
ParserContext parserContext,
String channelName)
Subclasses must implement this method to parse the adapter element.
|
protected BeanComponentDefinition |
doParseAndRegisterConsumer(Element element,
ParserContext parserContext)
Override this method to control the registration process and return the bean name.
|
protected boolean |
isUsingReplyProducer()
Override this to signal that this channel adapter is actually using a AbstractReplyProducingMessageHandler
while it is not possible for this parser to determine that because, say, a FactoryBean is being used.
|
protected abstract AbstractBeanDefinition |
parseConsumer(Element element,
ParserContext parserContext)
Override this method to return the BeanDefinition for the MessageConsumer.
|
parseInternal, resolveId
parse, postProcessComponentDefinition, registerBeanDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
public AbstractOutboundChannelAdapterParser()
protected AbstractBeanDefinition doParse(Element element, ParserContext parserContext, String channelName)
AbstractChannelAdapterParser
doParse
in class AbstractChannelAdapterParser
element
- The element.parserContext
- The parser context.channelName
- The channel name.protected BeanComponentDefinition doParseAndRegisterConsumer(Element element, ParserContext parserContext)
parseConsumer(Element, ParserContext)
instead.element
- The element.parserContext
- The parser context.protected abstract AbstractBeanDefinition parseConsumer(Element element, ParserContext parserContext)
element
- The element.parserContext
- The parser context.protected boolean isUsingReplyProducer()