Package org.springframework.batch.item.jms.builder

# Class JmsItemWriterBuilder<T>

java.lang.Object
org.springframework.batch.item.jms.builder.JmsItemWriterBuilder<T>

public class JmsItemWriterBuilder<T> extends Object
Creates a fully qualified JmsItemWriter.

Since:
  4.0
Author:
  Glenn Renfro

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `JmsItemWriterBuilder()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `JmsItemWriter<T>`
  `build()`
  Returns a fully constructed `JmsItemWriter`.
  `JmsItemWriterBuilder<T>`
  `jmsTemplate(org.springframework.jms.core.JmsOperations jmsTemplate)`
  Establish the JMS template that will be used by the `JmsItemWriter`.

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

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

- ## Constructor Details

  - ### JmsItemWriterBuilder

    public JmsItemWriterBuilder()

- ## Method Details

  - ### jmsTemplate

    public JmsItemWriterBuilder<T> jmsTemplate(org.springframework.jms.core.JmsOperations jmsTemplate)
    Establish the JMS template that will be used by the `JmsItemWriter`.
    Parameters:
      `jmsTemplate` - a `JmsOperations` instance
    Returns:
      this instance for method chaining.
    See Also:
      - `JmsItemWriter.setJmsTemplate(JmsOperations)`

  - ### build

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