クラス AbstractSimpleMessageHandlerFactoryBean<H extends MessageHandler>
java.lang.ObjectSE
org.springframework.integration.config.AbstractSimpleMessageHandlerFactoryBean<H>
- 型パラメーター:
H- ターゲットメッセージハンドラー型。
- 実装されているすべてのインターフェース:
Aware、BeanFactoryAware、BeanNameAware、FactoryBean<MessageHandler>、ApplicationContextAware、ApplicationEventPublisherAware
- 既知の直属サブクラス
AbstractStandardMessageHandlerFactoryBean、AggregatorFactoryBean、ControlBusFactoryBean、FileWritingMessageHandlerFactoryBean、JpaOutboundGatewayFactoryBean
public abstract class AbstractSimpleMessageHandlerFactoryBean<H extends MessageHandler>
extends ObjectSE
implements FactoryBean<MessageHandler>, ApplicationContextAware, BeanFactoryAware, BeanNameAware, ApplicationEventPublisherAware
MessageHandler を作成および構成するためのファクトリ Bean。- 作成者:
- Dave Syer, Oleg Zhurakousky, Gary Russell, Artem Bilan, David Liu, Christian Tzolov, Ngoc Nhan
フィールドのサマリー
フィールドインターフェース org.springframework.beans.factory.FactoryBean から継承されたフィールド
OBJECT_TYPE_ATTRIBUTEコンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明protected abstract Hprotected final Hprotected BeanFactoryClassSE<? extends MessageHandler> protected ClassSE<? extends MessageHandler> サブクラスはこれをオーバーライドして、ハンドラーの作成前に特定の型を返すことができます。booleanvoidsetAdviceChain(ListSE<Advice> adviceChain) AbstractReplyProducingMessageHandler内で構成するアドバイスチェーンを設定して、このローカルエンドポイントのみにアドバイスします。voidsetApplicationContext(ApplicationContext applicationContext) voidsetApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) void現在、サービスアクティベーター名前空間でのみ公開されています。voidsetBeanFactory(BeanFactory beanFactory) voidsetBeanName(StringSE beanName) voidsetChannelResolver(DestinationResolver<MessageChannel> channelResolver) ハンドラーのチャネルリゾルバーを設定します。voidsetComponentName(StringSE componentName) ハンドラーコンポーネントの名前を設定します。voidハンドラーがそのチャネルにサブスクライブされる順序を設定します(サブスクライブ可能な場合)。voidsetOutputChannel(MessageChannel outputChannel) ハンドラーの出力チャネルを設定します。voidsetOutputChannelName(StringSE outputChannelName) ハンドラーの出力チャネル名を設定します。
フィールドの詳細
logger
protected final org.apache.commons.logging.Log logger
コンストラクターの詳細
AbstractSimpleMessageHandlerFactoryBean
public AbstractSimpleMessageHandlerFactoryBean()
メソッドの詳細
setApplicationContext
- 次で指定:
- インターフェース
ApplicationContextAwareのsetApplicationContext - 例外:
BeansException
setBeanName
- 次で指定:
- インターフェース
BeanNameAwareのsetBeanName
setApplicationEventPublisher
- 次で指定:
- インターフェース
ApplicationEventPublisherAwareのsetApplicationEventPublisher
setChannelResolver
ハンドラーのチャネルリゾルバーを設定します。- パラメーター:
channelResolver- 設定するチャネルリゾルバー。
setOutputChannel
ハンドラーの出力チャネルを設定します。- パラメーター:
outputChannel- 設定する出力チャネル。
setOutputChannelName
ハンドラーの出力チャネル名を設定します。- パラメーター:
outputChannelName- 設定する出力チャネル Bean 名。- 導入:
- 5.1.4
setOrder
ハンドラーがそのチャネルにサブスクライブされる順序を設定します(サブスクライブ可能な場合)。- パラメーター:
order- 設定する順序。
setBeanFactory
- 次で指定:
- インターフェース
BeanFactoryAwareのsetBeanFactory - 例外:
BeansException
getBeanFactory
setAdviceChain
AbstractReplyProducingMessageHandler内で構成するアドバイスチェーンを設定して、このローカルエンドポイントのみにアドバイスします。他のハンドラーの場合、ハンドラー自体の周囲にアドバイスチェーンが適用されます。- パラメーター:
adviceChain- adviceChain を設定します。
setAsync
現在、サービスアクティベーター名前空間でのみ公開されています。他のエンドポイントが非同期サポートの恩恵を受けることは明らかではありませんが、AbstractReplyProducingMessageHandlerのサブクラスがListenableFuture<?>を返す可能性があります。- パラメーター:
async- 設定する非同期。- 導入:
- 4.3
setComponentName
ハンドラーコンポーネントの名前を設定します。- パラメーター:
componentName- コンポーネント名。
getObject
- 次で指定:
- インターフェース
FactoryBean<H extends MessageHandler>のgetObject
createHandlerInternal
createHandler
getObjectType
- 次で指定:
- インターフェース
FactoryBean<H extends MessageHandler>のgetObjectType
getPreCreationHandlerType
サブクラスはこれをオーバーライドして、ハンドラーの作成前に特定の型を返すことができます。ハンドラーの作成後、実際の型が使用されます。- 戻り値:
- 型。
isSingleton
public boolean isSingleton()- 次で指定:
- インターフェース
FactoryBean<H extends MessageHandler>のisSingleton