public class CompositeItemWriterBuilder<T>
extends java.lang.Object
Constructor and Description |
---|
CompositeItemWriterBuilder() |
Modifier and Type | Method and Description |
---|---|
CompositeItemWriter<T> |
build()
Returns a fully constructed
CompositeItemWriter . |
CompositeItemWriterBuilder<T> |
delegates(ItemWriter<? super T>... delegates)
The item writers to use as delegates.
|
CompositeItemWriterBuilder<T> |
delegates(java.util.List<ItemWriter<? super T>> delegates)
The list of item writers to use as delegates.
|
CompositeItemWriterBuilder<T> |
ignoreItemStream(boolean ignoreItemStream)
Establishes the policy whether to call the open, close, or update methods for the
item writer delegates associated with the CompositeItemWriter.
|
public CompositeItemWriterBuilder<T> ignoreItemStream(boolean ignoreItemStream)
ignoreItemStream
- if false the delegates' open, close, or update methods will
be called when the corresponding methods on the CompositeItemWriter are called. If
true the delegates' open, close, nor update methods will not be called (default is false).CompositeItemWriter.setIgnoreItemStream(boolean)
public CompositeItemWriterBuilder<T> delegates(java.util.List<ItemWriter<? super T>> delegates)
delegates
- the list of delegates to use. The delegates list must not be null
nor be empty.CompositeItemWriter.setDelegates(List)
@SafeVarargs public final CompositeItemWriterBuilder<T> delegates(ItemWriter<? super T>... delegates)
delegates
- the delegates to use.CompositeItemWriter.setDelegates(List)
public CompositeItemWriter<T> build()
CompositeItemWriter
.CompositeItemWriter