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 | 
|---|---|
Message | 
toMessage(Object object,
         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, toMessageMessage toMessage(Object object, Session session, Object conversionHint) throws 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}JMSException - if thrown by JMS API methodsMessageConversionException - in case of conversion failureMessageConverter.toMessage(Object, Session)