Skip to content

Commit

Permalink
polishing Javadoc for marshalling message converters
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Dec 12, 2011
1 parent 1141a1d commit 5ebabcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
/**
* 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
* {@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.
*
* @author Mark Pollack
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
/**
* 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
* {@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.
*
* @author Arjen Poutsma
Expand Down Expand Up @@ -160,7 +160,7 @@ public Message toMessage(Object object, Session session) throws JMSException, Me
throw new MessageConversionException("Could not marshal [" + object + "]", ex);
}
catch (IOException ex) {
throw new MessageConversionException("Could not marshal [" + object + "]", ex);
throw new MessageConversionException("Could not marshal [" + object + "]", ex);
}
}

Expand Down Expand Up @@ -299,7 +299,7 @@ protected Object unmarshalFromBytesMessage(BytesMessage message, Unmarshaller un
* Template method that allows for custom message unmarshalling.
* Invoked when {@link #fromMessage(Message)} is invoked with a message
* 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 unmarshaller the unmarshaller to use
* @return the unmarshalled object
Expand Down

0 comments on commit 5ebabcf

Please sign in to comment.