public interface SmartMessageConverter extends MessageConverter
MessageConverter SPI with conversion hint support.
In case of a conversion hint being provided, the framework will call
the extended method if a converter implements this interface, instead
of calling the regular toMessage variant.
| Modifier and Type | Method and Description |
|---|---|
javax.jms.Message |
toMessage(Object object,
javax.jms.Session session,
Object conversionHint)
A variant of
MessageConverter.toMessage(Object, Session) which takes an extra conversion
context as an argument, allowing to take e.g. |
fromMessage, toMessagejavax.jms.Message toMessage(Object object, javax.jms.Session session, Object conversionHint) throws javax.jms.JMSException, MessageConversionException
MessageConverter.toMessage(Object, Session) which takes an extra conversion
context as an argument, allowing to take e.g. annotations on a payload parameter
into account.object - the object to convertsession - the Session to use for creating a JMS MessageconversionHint - an extra object passed to the MessageConverter,
e.g. the associated MethodParameter (may be null}javax.jms.JMSException - if thrown by JMS API methodsMessageConversionException - in case of conversion failureMessageConverter.toMessage(Object, Session)Copyright © 2017 Power TAC. All rights reserved.