public class JmsItemReaderBuilder<T>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<? extends T> |
itemType |
protected org.springframework.jms.core.JmsOperations |
jmsTemplate |
| Constructor and Description |
|---|
JmsItemReaderBuilder() |
| Modifier and Type | Method and Description |
|---|---|
JmsItemReader<T> |
build()
Returns a fully constructed
JmsItemReader. |
JmsItemReaderBuilder<T> |
itemType(java.lang.Class<? extends T> itemType)
Set the expected type of incoming message payloads.
|
JmsItemReaderBuilder<T> |
jmsTemplate(org.springframework.jms.core.JmsOperations jmsTemplate)
Establish the JMS template that will be used by the JmsItemReader.
|
protected java.lang.Class<? extends T> itemType
protected org.springframework.jms.core.JmsOperations jmsTemplate
public JmsItemReaderBuilder<T> jmsTemplate(org.springframework.jms.core.JmsOperations jmsTemplate)
jmsTemplate - a JmsOperations instanceJmsItemReader.setJmsTemplate(JmsOperations)public JmsItemReaderBuilder<T> itemType(java.lang.Class<? extends T> itemType)
Message to
receive the raw underlying message.itemType - the java class of the items to be delivered. Typically the same as
the class parameterjava.lang.IllegalStateException - if the message payload is of the wrong type.JmsItemReader.setItemType(Class)public JmsItemReader<T> build()
JmsItemReader.JmsItemReader