クラス StandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilder
java.lang.ObjectSE
org.springframework.integration.dsl.context.StandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilder
- 実装済みのインターフェース一覧:
IntegrationFlowContext.IntegrationFlowRegistrationBuilder
- 含まれているクラス:
- StandardIntegrationFlowContext
public final class StandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilder
extends ObjectSE
implements IntegrationFlowContext.IntegrationFlowRegistrationBuilder
アプリケーションコンテキストで
IntegrationFlow を登録するオプションの Builder パターン実装。方法の概要
修飾子と型メソッド説明アプリケーションコンテキストでIntegrationFlow依存 Bean として登録されるオブジェクトを追加します。アプリケーションコンテキストでIntegrationFlow依存 Bean として登録されるオブジェクトを追加します。autoStartup(boolean autoStartupToSet) IntegrationFlowを登録後に自動的に開始する必要があるかどうかを示すbooleanフラグ。登録するIntegrationFlowのidを指定します。register()IntegrationFlowおよびすべての依存コンポーネントとサポートコンポーネントをアプリケーションコンテキストに登録し、関連するIntegrationFlowContext.IntegrationFlowRegistrationコントロールオブジェクトを返します。setDescription(StringSE description) この統合フローの人間が読める説明を設定します。この手動統合フロー定義の構成ソースObjectを設定します。このメソッドを呼び出して、フロー内の Bean 名の前に(必須の)フロー ID とピリオドを付けます。
方法の詳細
id
登録するIntegrationFlowのidを指定します。コンテキストごとに一意である必要があります。このidへの登録は、新しいIntegrationFlowインスタンスで再利用する前に破棄する必要があります。- 次で指定:
- インターフェース
IntegrationFlowContext.IntegrationFlowRegistrationBuilder内のid - パラメーター:
id- 登録するIntegrationFlowの ID- 戻り値:
- 現在のビルダーインスタンス
autoStartup
public StandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilder autoStartup(boolean autoStartupToSet) - 次で指定:
- インターフェース
IntegrationFlowContext.IntegrationFlowRegistrationBuilder内のautoStartup - パラメーター:
autoStartupToSet- 登録後に自動的にIntegrationFlowを開始するかどうか。- 戻り値:
- 現在のビルダーインスタンス
addBean
public StandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilder addBean(ObjectSE bean) アプリケーションコンテキストでIntegrationFlow依存 Bean として登録されるオブジェクトを追加します。通常、アプリケーションコンテキストを必要とするサポートコンポーネントです。たとえば、AMQP、JMS、TCP などの動的に作成された接続ファクトリまたはヘッダーマッパー。- 次で指定:
- インターフェース
IntegrationFlowContext.IntegrationFlowRegistrationBuilder内のaddBean - パラメーター:
bean- アプリケーションコンテキストに登録するための追加の任意の Bean- 戻り値:
- 現在のビルダーインスタンス
addBean
public StandardIntegrationFlowContext.StandardIntegrationFlowRegistrationBuilder addBean(@Nullable StringSE name, ObjectSE bean) アプリケーションコンテキストでIntegrationFlow依存 Bean として登録されるオブジェクトを追加します。通常、アプリケーションコンテキストを必要とするサポートコンポーネントです。たとえば、AMQP、JMS、TCP などの動的に作成された接続ファクトリまたはヘッダーマッパー。- 次で指定:
- インターフェース
IntegrationFlowContext.IntegrationFlowRegistrationBuilder内のaddBean - パラメーター:
name- 登録する Bean の名前。bean- アプリケーションコンテキストに登録するための追加の任意の Bean- 戻り値:
- 現在のビルダーインスタンス
setSource
インターフェースからコピーされた説明:IntegrationFlowContext.IntegrationFlowRegistrationBuilderこの手動統合フロー定義の構成ソースObjectを設定します。実行時にメッセージング例外が発生したときにフローのソースコードに簡単につながる可能性のある任意のオブジェクトにすることができます。- 次で指定:
- インターフェース
IntegrationFlowContext.IntegrationFlowRegistrationBuilder内のsetSource - パラメーター:
source- 構成ソース表現。- 戻り値:
- 現在のビルダーインスタンス
setDescription
public IntegrationFlowContext.IntegrationFlowRegistrationBuilder setDescription(StringSE description) インターフェースからコピーされた説明:IntegrationFlowContext.IntegrationFlowRegistrationBuilderこの統合フローの人間が読める説明を設定します。- 次で指定:
- インターフェース
IntegrationFlowContext.IntegrationFlowRegistrationBuilder内のsetDescription - パラメーター:
description- 統合フローインスタンスの説明。- 戻り値:
- 現在のビルダーインスタンス
useFlowIdAsPrefix
インターフェースからコピーされた説明:IntegrationFlowContext.IntegrationFlowRegistrationBuilderこのメソッドを呼び出して、フロー内の Bean 名の前に(必須の)フロー ID とピリオドを付けます。これは、フロー内で Bean を参照する機能を保持しながら、同じフローを複数回登録する場合に役立ちます。Bean 名に一意のフロー ID を追加すると、名前が一意になります。- 次で指定:
- インターフェース
IntegrationFlowContext.IntegrationFlowRegistrationBuilder内のuseFlowIdAsPrefix - 戻り値:
- 現在のビルダーインスタンス。
- 関連事項:
register
IntegrationFlowおよびすべての依存コンポーネントとサポートコンポーネントをアプリケーションコンテキストに登録し、関連するIntegrationFlowContext.IntegrationFlowRegistrationコントロールオブジェクトを返します。- 次で指定:
- インターフェース
IntegrationFlowContext.IntegrationFlowRegistrationBuilder内のregister - 戻り値:
IntegrationFlowContext.IntegrationFlowRegistrationインスタンス。