クラス StandardIntegrationFlowContext
java.lang.ObjectSE
org.springframework.integration.dsl.context.StandardIntegrationFlowContext
- 実装されているすべてのインターフェース:
Aware、BeanFactoryAware、IntegrationFlowContext
public final class StandardIntegrationFlowContext extends ObjectSE implements IntegrationFlowContext, BeanFactoryAware
IntegrationFlowContext の標準実装。- 導入:
- 5.1
- 作成者:
- Artem Bilan, Gary Russell, Alexander Shaklein, Artem Vozhdayenko
ネストされたクラスの要約
ネストされたクラス 修飾子と型 クラス 説明 classStandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilderアプリケーションコンテキストでIntegrationFlowを登録するオプションの Builder パターン実装。インターフェース org.springframework.integration.dsl.context.IntegrationFlowContext から継承されたネストクラス / インターフェース
IntegrationFlowContext.IntegrationFlowRegistration, IntegrationFlowContext.IntegrationFlowRegistrationBuilderメソッドのサマリー
修飾子と型 メソッド 説明 IntegrationFlowContext.IntegrationFlowRegistrationgetRegistrationById(StringSE flowId)MapSE<StringSE,IntegrationFlowContext.IntegrationFlowRegistration>getRegistry()統合フロー名のIntegrationFlowContext.IntegrationFlowRegistrationインスタンスへのマッピングの状態を提供します。booleanisUseIdAsPrefix(StringSE flowId)true を返すと、フロー Bean 名の前にフロー ID とピリオドが付きます。MessagingTemplatemessagingTemplateFor(StringSE flowId)StandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilderregistration(IntegrationFlow integrationFlow)アソシエイトは、IntegrationFlowにStandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilderを提供して、アプリケーションコンテキストでの追加オプションとさらなる登録を実現しました。voidremove(StringSE flowId)提供されたflowIdのIntegrationFlowBean(およびそれに依存するすべての Bean)を破棄し、そのすべてのローカルキャッシュをクリーンアップします。voidsetBeanFactory(BeanFactory beanFactory)
メソッドの詳細
setBeanFactory
- 次で指定:
- インターフェース
BeanFactoryAwareのsetBeanFactory - 例外:
BeansException
registration
public StandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilder registration(IntegrationFlow integrationFlow)アソシエイトは、IntegrationFlowにStandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilderを提供して、アプリケーションコンテキストでの追加オプションとさらなる登録を実現しました。- 次で指定:
- インターフェース
IntegrationFlowContextのregistration - パラメーター:
integrationFlow- 登録するIntegrationFlow- 戻り値:
- 提供された
IntegrationFlowに関連付けられた IntegrationFlowRegistrationBuilder
isUseIdAsPrefix
インターフェースからコピーされた説明:IntegrationFlowContexttrue を返すと、フロー Bean 名の前にフロー ID とピリオドが付きます。- 次で指定:
- インターフェース
IntegrationFlowContextのisUseIdAsPrefix - パラメーター:
flowId- フロー ID。- 戻り値:
- プレフィックスとして使用する場合は true。
getRegistrationById
- 次で指定:
- インターフェース
IntegrationFlowContextのgetRegistrationById - パラメーター:
flowId- 取得する Bean 名- 戻り値:
- 提供された
idまたはnullの IntegrationFlowRegistration
remove
提供されたflowIdのIntegrationFlowBean(およびそれに依存するすべての Bean)を破棄し、そのすべてのローカルキャッシュをクリーンアップします。- 次で指定:
- インターフェース
IntegrationFlowContextのremove - パラメーター:
flowId- 破棄する Bean 名
messagingTemplateFor
提供されたflowIdのIntegrationFlowの入力チャネルにデフォルトの宛先が設定されたMessagingTemplateを取得します。この方法では、任意の
IntegrationFlowBean(手動で登録しただけでなく)を使用できます。IntegrationFlowがMessageChannelで始まらない場合、IllegalStateExceptionSE がスローされます。- 次で指定:
- インターフェース
IntegrationFlowContextのmessagingTemplateFor - パラメーター:
flowId- 入力チャネルを取得するための Bean 名- 戻り値:
MessagingTemplateインスタンス
getRegistry
統合フロー名のIntegrationFlowContext.IntegrationFlowRegistrationインスタンスへのマッピングの状態を提供します。- 次で指定:
- インターフェース
IntegrationFlowContextのgetRegistry - 戻り値:
- フロー ID のレジストリとその登録。