T
- the type that the underlying MessageHandler
can handlepublic class MessageHandlerAdapter<T>
extends java.lang.Object
implements javax.jms.MessageListener
MessageListener
and
MessageHandler
. Will attempt to deserialize the given Message
to an object of type <T>
and then provide that to the delegate
handler.Constructor and Description |
---|
MessageHandlerAdapter(MessageHandler<T> delegate,
java.lang.Class<T> clazz) |
Modifier and Type | Method and Description |
---|---|
void |
onMessage(javax.jms.Message message) |
public MessageHandlerAdapter(MessageHandler<T> delegate, java.lang.Class<T> clazz)
delegate
- the underlying handler to delegate to.clazz
- the parameter class of the delegate
.