Polishing
This commit is contained in:
@@ -293,8 +293,8 @@ public abstract class AbstractAdaptableMessageListener
|
||||
/**
|
||||
* Pre-process the given result before it is converted to a {@link Message}.
|
||||
* @param result the result of the invocation
|
||||
* @return the payload response to handle, either the {@code result} argument or any other
|
||||
* object (for instance wrapping the result).
|
||||
* @return the payload response to handle, either the {@code result} argument
|
||||
* or any other object (for instance wrapping the result).
|
||||
* @since 4.3
|
||||
*/
|
||||
protected Object preProcessResponse(Object result) {
|
||||
|
||||
@@ -212,6 +212,7 @@ public class MappingJackson2MessageConverter implements SmartMessageConverter, B
|
||||
*/
|
||||
public Message toMessage(Object object, Session session, Class<?> jsonView)
|
||||
throws JMSException, MessageConversionException {
|
||||
|
||||
if (jsonView != null) {
|
||||
return toMessage(object, session, this.objectMapper.writerWithView(jsonView));
|
||||
}
|
||||
|
||||
@@ -128,15 +128,16 @@ public class MessagingMessageConverter implements MessageConverter, Initializing
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a JMS message for the specified payload and conversionHint. The conversion
|
||||
* hint is an extra object passed to the {@link MessageConverter}, e.g. the associated
|
||||
* {@code MethodParameter} (may be {@code null}}.
|
||||
* Create a JMS message for the specified payload and conversionHint.
|
||||
* The conversion hint is an extra object passed to the {@link MessageConverter},
|
||||
* e.g. the associated {@code MethodParameter} (may be {@code null}}.
|
||||
* @see MessageConverter#toMessage(Object, Session)
|
||||
* @since 4.3
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
protected javax.jms.Message createMessageForPayload(Object payload, Session session, Object conversionHint)
|
||||
throws JMSException {
|
||||
|
||||
return createMessageForPayload(payload, session);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user