Package org.springframework.batch.item.support.builder

# Class ClassifierCompositeItemWriterBuilder<T>

java.lang.Object
org.springframework.batch.item.support.builder.ClassifierCompositeItemWriterBuilder<T>

public class ClassifierCompositeItemWriterBuilder<T> extends Object
Creates a fully qualified ClassifierCompositeItemWriter.

Since:
  4.0
Author:
  Glenn Renfro, Mahmoud Ben Hassine

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ClassifierCompositeItemWriterBuilder()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ClassifierCompositeItemWriter<T>`
  `build()`
  Returns a fully constructed `ClassifierCompositeItemWriter`.
  `ClassifierCompositeItemWriterBuilder<T>`
  `classifier(org.springframework.classify.Classifier<T,ItemWriter<? super T>> classifier)`
  Establish the classifier to be used for the selection of which `ItemWriter` to use.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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 which `ItemWriter` to use.
    Parameters:
      `classifier` - the classifier to set
    Returns:
      this instance for method chaining
    See Also:
      - `ClassifierCompositeItemWriter.setClassifier(Classifier)`

  - ### build

    public ClassifierCompositeItemWriter<T> build()
    Returns a fully constructed `ClassifierCompositeItemWriter`.
    Returns:
      a new `ClassifierCompositeItemWriter`