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 java.lang.Object

  Creates a fully qualified ClassifierCompositeItemWriter.
  Since:
    4.0
  Author:
    Glenn Renfro, Mahmoud Ben Hassine

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ClassifierCompositeItemWriterBuilder()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and 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 Detail

    - #### ClassifierCompositeItemWriterBuilder

          public ClassifierCompositeItemWriterBuilder()

  - ### Method Detail

    - #### 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`