クラス 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 パターン実装。- 導入:
- 5.1
- 作成者:
- Artem Bilan, Gary Russell, Alexander Shaklein, Artem Vozhdayenko
メソッドのサマリー
修飾子と型メソッド説明アプリケーションコンテキストで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
インスタンス。