From 3ac6a6b72f24d2733eefc0bdbce1c16a24c2414b Mon Sep 17 00:00:00 2001 From: Oleg Zhurakousky Date: Fri, 12 Nov 2010 09:43:25 -0500 Subject: [PATCH] INT-1516 added docs for transformer and SpEL --- docs/src/reference/docbook/transformer.xml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/src/reference/docbook/transformer.xml b/docs/src/reference/docbook/transformer.xml index 12e925f523..839458b3ff 100644 --- a/docs/src/reference/docbook/transformer.xml +++ b/docs/src/reference/docbook/transformer.xml @@ -64,6 +64,28 @@ be sent (effectively the same behavior as a Message Filter returning false). Otherwise, the return value will be sent as the payload of an outbound reply Message. + + + Transformers and Spring Expression Language (SpEL) + + + + Just like Routers, Aggregators and other components, since Spring Integration 2.0 Transformers can also benefit from SpEL + http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/expressions.html + whenever transformation logic is relatively simple. + + ]]> + + In the above configuration we are achieving a simple transformation of the payload with a simple SpEL + expression and without writing a custom transformer. Our payload (assuming String) will be + upper-cased and concatenated with the current timestamp with some simple formatting. + + + + Common Transformers + There are a also a few Transformer implementations available out of the box. Because, it is fairly common to use the toString() representation of an Object, Spring Integration provides an