INT-909 Added support for the 'extract-payload' attribute on the 'marshalling-transformer' element. The default value is "true".

This commit is contained in:
Mark Fisher
2009-12-14 00:44:50 +00:00
parent 8124446f9d
commit 9494dd9371
4 changed files with 36 additions and 6 deletions

View File

@@ -46,6 +46,10 @@ public class MarshallingTransformerParser extends AbstractTransformerParser {
if (StringUtils.hasText(resultTransformer)) {
builder.addConstructorArgReference(resultTransformer);
}
String extractPayload = element.getAttribute("extract-payload");
if (StringUtils.hasText(extractPayload)) {
builder.addPropertyValue("extractPayload", extractPayload);
}
XmlNamespaceUtils.configureResultFactory(builder, resultType, resultFactory);
}

View File

@@ -62,6 +62,14 @@
</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="extract-payload" type="xsd:string" default="true">
<xsd:annotation>
<xsd:documentation>
Specify whether to extract the payload before passing to the Marshaller. By default, this
value is "true". To have the full Message passed instead, set this to "false".
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>