クラス MultiResourceItemReaderBuilder<T>
java.lang.ObjectSE
org.springframework.batch.item.file.builder.MultiResourceItemReaderBuilder<T>
MultiResourceItemReader のビルダー実装。- 導入:
- 4.0
- 作成者:
- Glenn Renfro, Drummond Dawson
- 関連事項:
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明build()MultiResourceItemReaderをビルドします。comparator(ComparatorSE<org.springframework.core.io.Resource> comparator) 注入されたリソースの順序付けに使用され、デフォルトでResource.getFilename()値を比較します。delegate(ResourceAwareItemReaderItemStream<? extends T> delegate) 提供されるリソースの読み取りに使用するデリゲートを確立します。ExecutionContext内でキーを計算するために使用される名前。resources(org.springframework.core.io.Resource... resources) MultiResourceItemReaderがアイテムを取得するために使用するリソースの配列。saveState(boolean saveState) 再起動のためにItemStreamSupportの状態をExecutionContext内に保持する必要があるかどうかを構成します。setStrict(boolean strict) 厳密モードでは、読み取るリソースがない場合、リーダーはMultiResourceItemReader.open(org.springframework.batch.item.ExecutionContext)で例外をスローします。
コンストラクターの詳細
MultiResourceItemReaderBuilder
public MultiResourceItemReaderBuilder()
メソッドの詳細
saveState
再起動のためにItemStreamSupportの状態をExecutionContext内に保持する必要があるかどうかを構成します。- パラメーター:
saveState- デフォルトは true- 戻り値:
- ビルダーの現在のインスタンス。
name
ExecutionContext内でキーを計算するために使用される名前。saveState(boolean)が true に設定されている場合は必須です。- パラメーター:
name- リーダーインスタンスの名前- 戻り値:
- ビルダーの現在のインスタンス。
- 関連事項:
resources
public MultiResourceItemReaderBuilder<T> resources(org.springframework.core.io.Resource... resources) MultiResourceItemReaderがアイテムを取得するために使用するリソースの配列。- パラメーター:
resources- 使用するリソースの配列。- 戻り値:
- メソッドチェーン用のこのインスタンス。
- 関連事項:
delegate
public MultiResourceItemReaderBuilder<T> delegate(ResourceAwareItemReaderItemStream<? extends T> delegate) 提供されるリソースの読み取りに使用するデリゲートを確立します。- パラメーター:
delegate- 単一のResourceから項目を読み取ります。- 戻り値:
- メソッドチェーン用のこのインスタンス。
- 関連事項:
setStrict
厳密モードでは、読み取るリソースがない場合、リーダーはMultiResourceItemReader.open(org.springframework.batch.item.ExecutionContext)で例外をスローします。- パラメーター:
strict- デフォルトでは false。- 戻り値:
- メソッドチェーン用のこのインスタンス。
- 関連事項:
comparator
public MultiResourceItemReaderBuilder<T> comparator(ComparatorSE<org.springframework.core.io.Resource> comparator) 注入されたリソースの順序付けに使用され、デフォルトでResource.getFilename()値を比較します。- パラメーター:
comparator- リソースの順序付けに使用するコンパレータ。- 戻り値:
- メソッドチェーン用のこのインスタンス。
- 関連事項:
build
MultiResourceItemReaderをビルドします。