From 85a602fa1c12c5ce0e006b9b13f3dc0f11697940 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Mon, 28 Nov 2011 18:17:35 +0200 Subject: [PATCH 1/2] INT-2273: Manual 3.2 --- docs/src/reference/docbook/channel-adapter.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/src/reference/docbook/channel-adapter.xml b/docs/src/reference/docbook/channel-adapter.xml index efec45d05b..f3619f2f5b 100644 --- a/docs/src/reference/docbook/channel-adapter.xml +++ b/docs/src/reference/docbook/channel-adapter.xml @@ -118,9 +118,15 @@ Any Channel Adapter can be created without a "channel" reference in which case it will implicitly create an instance of DirectChannel. The created channel's name will match the "id" attribute - of the <inbound-channel-adapter/> or <outbound-channel-adapter> element. Therefore, if the "channel" + of the <inbound-channel-adapter> or <outbound-channel-adapter> element. Therefore, if the "channel" is not provided, the "id" is required. + + As many other Spring Integration components <inbound-channel-adapter> and <outbound-channel-adapter> + also provide support for SpEL expression via 'expression' attribute in contrast to method-invocation via 'bean reference/method', while following the same contract where: + expression for <inbound-channel-adapter> must always return non-null value, + while the one for <outbound-channel-adapter> must be equivalent of void return type. + From dec71f27c86f400077de39d9ee6006919608941d Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Fri, 2 Dec 2011 14:13:25 -0500 Subject: [PATCH 2/2] polishing --- docs/src/reference/docbook/channel-adapter.xml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/src/reference/docbook/channel-adapter.xml b/docs/src/reference/docbook/channel-adapter.xml index f3619f2f5b..efc27b46dd 100644 --- a/docs/src/reference/docbook/channel-adapter.xml +++ b/docs/src/reference/docbook/channel-adapter.xml @@ -122,10 +122,13 @@ is not provided, the "id" is required. - As many other Spring Integration components <inbound-channel-adapter> and <outbound-channel-adapter> - also provide support for SpEL expression via 'expression' attribute in contrast to method-invocation via 'bean reference/method', while following the same contract where: - expression for <inbound-channel-adapter> must always return non-null value, - while the one for <outbound-channel-adapter> must be equivalent of void return type. + Like many other Spring Integration components, the <inbound-channel-adapter> and + <outbound-channel-adapter> also provide support for SpEL expression evaluation. To use SpEL, provide the + expression string via the 'expression' attribute instead of providing the 'ref' and 'method' attributes that are used for + method-invocation on a bean. When an Expression is evaluated, it follows the same contract as method-invocation where: + the expression for an <inbound-channel-adapter> will generate a message anytime the + evaluation result is a non-null value, while the expression for an + <outbound-channel-adapter> must be the equivalent of a void returning method invocation.