diff --git a/docs/src/reference/docbook/channel-adapter.xml b/docs/src/reference/docbook/channel-adapter.xml index efec45d05b..efc27b46dd 100644 --- a/docs/src/reference/docbook/channel-adapter.xml +++ b/docs/src/reference/docbook/channel-adapter.xml @@ -118,9 +118,18 @@ 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. + + 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. +