クラス AbstractOutboundChannelAdapterParser
java.lang.ObjectSE
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.integration.config.xml.AbstractChannelAdapterParser
org.springframework.integration.config.xml.AbstractOutboundChannelAdapterParser
- 実装されているすべてのインターフェース:
BeanDefinitionParser
- 既知の直属サブクラス
AbstractXmppOutboundChannelAdapterParser、AmqpOutboundChannelAdapterParser、ConsoleOutboundChannelAdapterParser、DefaultOutboundChannelAdapterParser、EventOutboundChannelAdapterParser、FileOutboundChannelAdapterParser、GemfireOutboundChannelAdapterParser、HttpOutboundChannelAdapterParser、JdbcMessageHandlerParser、JmsOutboundChannelAdapterParser、JpaOutboundChannelAdapterParser、KafkaOutboundChannelAdapterParser、LoggingChannelAdapterParser、MailOutboundChannelAdapterParser、MongoDbOutboundChannelAdapterParser、MqttOutboundChannelAdapterParser、NotificationPublishingChannelAdapterParser、OperationInvokingChannelAdapterParser、RedisOutboundChannelAdapterParser、RedisQueueOutboundChannelAdapterParser、RedisStoreOutboundChannelAdapterParser、RemoteFileOutboundChannelAdapterParser、StompOutboundChannelAdapterParser、StoredProcMessageHandlerParser、TcpOutboundChannelAdapterParser、UdpOutboundChannelAdapterParser、WebSocketOutboundMessageHandlerParser
public abstract class AbstractOutboundChannelAdapterParser extends AbstractChannelAdapterParser
送信チャネルアダプターパーサーの基本クラス。このコンポーネントが Spring アプリケーションコンテキストの最上位要素として定義されている場合、チャネル型に応じて
AbstractEndpoint が生成されます。このコンポーネントがネストされた要素として定義されている場合(たとえば、チェーンの内部)、MessageHandler が生成されます。- 作成者:
- Mark Fisher, Gary Russell, Artem Bilan
フィールドのサマリー
クラス org.springframework.beans.factory.xml.AbstractBeanDefinitionParser から継承されたフィールド
ID_ATTRIBUTE, NAME_ATTRIBUTEコンストラクターの概要
コンストラクター コンストラクター 説明 AbstractOutboundChannelAdapterParser()メソッドのサマリー
修飾子と型 メソッド 説明 protected AbstractBeanDefinitiondoParse(ElementSE element, ParserContext parserContext, StringSE channelName)アダプター要素を解析するには、サブクラスがこのメソッドを実装する必要があります。protected BeanComponentDefinitiondoParseAndRegisterConsumer(ElementSE element, ParserContext parserContext)このメソッドをオーバーライドして、登録プロセスを制御し、Bean 名を返します。protected booleanisUsingReplyProducer()これをオーバーライドして、このチャネルアダプターが実際に AbstractReplyProducingMessageHandler を使用していることを通知しますが、たとえば FactoryBean が使用されているため、このパーサーがそれを判別することはできません。protected abstract AbstractBeanDefinitionparseConsumer(ElementSE element, ParserContext parserContext)このメソッドをオーバーライドして、MessageConsumer の BeanDefinition を返します。クラス org.springframework.integration.config.xml.AbstractChannelAdapterParser から継承されたメソッド
parseInternal, resolveIdクラス org.springframework.beans.factory.xml.AbstractBeanDefinitionParser から継承されたメソッド
parse, postProcessComponentDefinition, registerBeanDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
コンストラクターの詳細
AbstractOutboundChannelAdapterParser
public AbstractOutboundChannelAdapterParser()
メソッドの詳細
doParse
protected AbstractBeanDefinition doParse(ElementSE element, ParserContext parserContext, StringSE channelName)クラスからコピーされた説明:AbstractChannelAdapterParserアダプター要素を解析するには、サブクラスがこのメソッドを実装する必要があります。MessageChannel Bean の名前が提供されます。- 次で指定:
- クラス
AbstractChannelAdapterParserのdoParse - パラメーター:
element- 要素。parserContext- パーサーコンテキスト。channelName- チャンネル名。- 戻り値:
- Bean 定義。
doParseAndRegisterConsumer
protected BeanComponentDefinition doParseAndRegisterConsumer(ElementSE element, ParserContext parserContext)このメソッドをオーバーライドして、登録プロセスを制御し、Bean 名を返します。名前を自動生成できる Bean 定義を解析する場合は、代わりにparseConsumer(Element, ParserContext)の使用を検討してください。- パラメーター:
element- 要素。parserContext- パーサーコンテキスト。- 戻り値:
- Bean コンポーネントの定義。
parseConsumer
protected abstract AbstractBeanDefinition parseConsumer(ElementSE element, ParserContext parserContext)このメソッドをオーバーライドして、MessageConsumer の BeanDefinition を返します。生成された名前で登録されます。- パラメーター:
element- 要素。parserContext- パーサーコンテキスト。- 戻り値:
- Bean 定義。
isUsingReplyProducer
protected boolean isUsingReplyProducer()これをオーバーライドして、このチャネルアダプターが実際に AbstractReplyProducingMessageHandler を使用していることを通知しますが、たとえば FactoryBean が使用されているため、このパーサーがそれを判別することはできません。- 戻り値:
- オーバーライドされない限り、false。