From 0b152a0a45dab68536ac98b7cb478382c2968ef1 Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Mon, 7 Dec 2009 12:08:33 +0000 Subject: [PATCH] INT-903 Updated javadoc now that the return value of the Unmarshaller can itself be a Message. --- .../xml/transformer/XmlPayloadUnmarshallingTransformer.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/org.springframework.integration.xml/src/main/java/org/springframework/integration/xml/transformer/XmlPayloadUnmarshallingTransformer.java b/org.springframework.integration.xml/src/main/java/org/springframework/integration/xml/transformer/XmlPayloadUnmarshallingTransformer.java index ac8fc35c7d..1d8857b1d9 100644 --- a/org.springframework.integration.xml/src/main/java/org/springframework/integration/xml/transformer/XmlPayloadUnmarshallingTransformer.java +++ b/org.springframework.integration.xml/src/main/java/org/springframework/integration/xml/transformer/XmlPayloadUnmarshallingTransformer.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,6 +40,10 @@ import org.springframework.xml.transform.StringSource; * {@link SourceFactory} that can convert to a {@link Source}. If * alwaysUseSourceFactory is set to true, then the {@link SourceFactory} * will be used to create the {@link Source} regardless of payload type. + *

+ * The Unmarshaller may return a Message, but if the return value is not + * already a Message instance, a new Message will be created with that + * return value as its payload. * * @author Jonas Partner */