Class ClassifierCompositeItemWriterBuilder<T>
java.lang.Object
org.springframework.batch.item.support.builder.ClassifierCompositeItemWriterBuilder<T>
Creates a fully qualified ClassifierCompositeItemWriter.
- Since:
- 4.0
- Author:
- Glenn Renfro, Mahmoud Ben Hassine
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a fully constructedClassifierCompositeItemWriter
.classifier
(org.springframework.classify.Classifier<T, ItemWriter<? super T>> classifier) Establish the classifier to be used for the selection of whichItemWriter
to use.
-
Constructor Details
-
ClassifierCompositeItemWriterBuilder
public ClassifierCompositeItemWriterBuilder()
-
-
Method Details
-
classifier
public ClassifierCompositeItemWriterBuilder<T> classifier(org.springframework.classify.Classifier<T, ItemWriter<? super T>> classifier) Establish the classifier to be used for the selection of whichItemWriter
to use.- Parameters:
classifier
- the classifier to set- Returns:
- this instance for method chaining
- See Also:
-
build
Returns a fully constructedClassifierCompositeItemWriter
.- Returns:
- a new
ClassifierCompositeItemWriter
-