public interface SmartMessageConverter extends MessageConverter
MessageConverter
SPI with conversion hint support.
In case of a conversion hint being provided, the framework will call
these extended methods if a converter implements this interface, instead
of calling the regular fromMessage
/ toMessage
variants.
Modifier and Type | Method and Description |
---|---|
Object |
fromMessage(Message message,
Object conversionHint)
A variant of
MessageConverter.fromMessage(Message) which takes an extra
conversion context as an argument. |
fromMessage, toMessage
Object fromMessage(Message message, Object conversionHint) throws MessageConversionException
MessageConverter.fromMessage(Message)
which takes an extra
conversion context as an argument.message
- the input message.conversionHint
- an extra object passed to the MessageConverter
.null
if the converter cannot
perform the conversion.MessageConversionException
- if the conversion fails.MessageConverter.fromMessage(Message)