polishing Javadoc for marshalling message converters

This commit is contained in:
Sam Brannen 2011-12-12 00:29:11 +00:00
parent 1141a1d610
commit 5ebabcf2b3
2 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@ import org.springframework.util.ClassUtils;
/** /**
* Message converter that uses the Jackson library to convert messages to and from JSON. * Message converter that uses the Jackson library to convert messages to and from JSON.
* Maps an object to a {@link BytesMessage}, or to a {@link TextMessage} if the * Maps an object to a {@link BytesMessage}, or to a {@link TextMessage} if the
* {@link #setTargetType marshalTo} is set to {@link MessageType#TEXT}. * {@link #setTargetType targetType} is set to {@link MessageType#TEXT}.
* Converts from a {@link TextMessage} or {@link BytesMessage} to an object. * Converts from a {@link TextMessage} or {@link BytesMessage} to an object.
* *
* @author Mark Pollack * @author Mark Pollack

View File

@ -40,7 +40,7 @@ import org.springframework.util.Assert;
/** /**
* Spring JMS {@link MessageConverter} that uses a {@link Marshaller} and {@link Unmarshaller}. * Spring JMS {@link MessageConverter} that uses a {@link Marshaller} and {@link Unmarshaller}.
* Marshals an object to a {@link BytesMessage}, or to a {@link TextMessage} if the * Marshals an object to a {@link BytesMessage}, or to a {@link TextMessage} if the
* {@link #setTargetType marshalTo} is set to {@link MessageType#TEXT}. * {@link #setTargetType targetType} is set to {@link MessageType#TEXT}.
* Unmarshals from a {@link TextMessage} or {@link BytesMessage} to an object. * Unmarshals from a {@link TextMessage} or {@link BytesMessage} to an object.
* *
* @author Arjen Poutsma * @author Arjen Poutsma
@ -160,7 +160,7 @@ public class MarshallingMessageConverter implements MessageConverter, Initializi
throw new MessageConversionException("Could not marshal [" + object + "]", ex); throw new MessageConversionException("Could not marshal [" + object + "]", ex);
} }
catch (IOException ex) { catch (IOException ex) {
throw new MessageConversionException("Could not marshal [" + object + "]", ex); throw new MessageConversionException("Could not marshal [" + object + "]", ex);
} }
} }
@ -299,7 +299,7 @@ public class MarshallingMessageConverter implements MessageConverter, Initializi
* Template method that allows for custom message unmarshalling. * Template method that allows for custom message unmarshalling.
* Invoked when {@link #fromMessage(Message)} is invoked with a message * Invoked when {@link #fromMessage(Message)} is invoked with a message
* that is not a {@link TextMessage} or {@link BytesMessage}. * that is not a {@link TextMessage} or {@link BytesMessage}.
* <p>The default implemenetation throws an {@link IllegalArgumentException}. * <p>The default implementation throws an {@link IllegalArgumentException}.
* @param message the message * @param message the message
* @param unmarshaller the unmarshaller to use * @param unmarshaller the unmarshaller to use
* @return the unmarshalled object * @return the unmarshalled object