From ccb0edc2ee5c7f527ddd78c970944720e1b6a487 Mon Sep 17 00:00:00 2001 From: David Turanski Date: Mon, 11 Jul 2011 12:29:45 -0400 Subject: [PATCH] INT-1970 added another router SpEL example to the Reference Manual --- docs/src/reference/docbook/router.xml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/src/reference/docbook/router.xml b/docs/src/reference/docbook/router.xml index f1a4eaacaa..3e5e50a8f4 100644 --- a/docs/src/reference/docbook/router.xml +++ b/docs/src/reference/docbook/router.xml @@ -208,12 +208,23 @@ Sometimes the routing logic may be simple and writing a separate class for it and configuring it as a bean may seem like overkill. As of Spring Integration 2.0 we offer an alternative where you can now use SpEL - to implement simple computations that previously required a custom POJO router. + to implement simple computations that previously required a custom POJO router. Generally a SpEL expression is evaluated and the + result is mapped to a channel: + + + + + +]]> + + To simplify things even more, the SpEL expression may evaluate to a channel name: ]]> In the above configuration the result channel will be computed by the SpEL expression which simply concatenates the value of the payload with the literal String 'Channel'. + Another value of SpEL for configuring routers is that an expression can actually return a Collection,