クラス 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 パターン実装。メソッドのサマリー
メソッドの詳細
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(StringSE name, ObjectSE bean)アプリケーションコンテキストでIntegrationFlow依存 Bean として登録されるオブジェクトを追加します。通常、アプリケーションコンテキストを必要とするサポートコンポーネントです。たとえば、AMQP、JMS、TCP などの動的に作成された接続ファクトリまたはヘッダーマッパー。- 次で指定:
- インターフェース
IntegrationFlowContext.IntegrationFlowRegistrationBuilderのaddBean - パラメーター:
name- 登録する Bean の名前。bean- アプリケーションコンテキストに登録するための追加の任意の Bean- 戻り値:
- 現在のビルダーインスタンス
setSource
インターフェースからコピーされた説明:IntegrationFlowContext.IntegrationFlowRegistrationBuilderこの手動統合フロー定義の構成ソースObjectを設定します。実行時にメッセージング例外が発生したときにフローのソースコードに簡単につながる可能性のある任意のオブジェクトにすることができます。- 次で指定:
- インターフェース
IntegrationFlowContext.IntegrationFlowRegistrationBuilderのsetSource - パラメーター:
source- 構成ソース表現。- 戻り値:
- 現在のビルダーインスタンス
useFlowIdAsPrefix
インターフェースからコピーされた説明:IntegrationFlowContext.IntegrationFlowRegistrationBuilderこのメソッドを呼び出して、フロー内の Bean 名の前に(必須の)フロー ID とピリオドを付けます。これは、フロー内で Bean を参照する機能を保持しながら、同じフローを複数回登録する場合に役立ちます。Bean 名に一意のフロー ID を追加すると、名前が一意になります。- 次で指定:
- インターフェース
IntegrationFlowContext.IntegrationFlowRegistrationBuilderのuseFlowIdAsPrefix - 戻り値:
- 現在のビルダーインスタンス。
- 関連事項:
IntegrationFlowContext.IntegrationFlowRegistrationBuilder.id(String)
register
IntegrationFlowおよびすべての依存コンポーネントとサポートコンポーネントをアプリケーションコンテキストに登録し、関連するIntegrationFlowContext.IntegrationFlowRegistrationコントロールオブジェクトを返します。- 次で指定:
- インターフェース
IntegrationFlowContext.IntegrationFlowRegistrationBuilderのregister - 戻り値:
IntegrationFlowContext.IntegrationFlowRegistrationインスタンス。