polishing
This commit is contained in:
@@ -122,10 +122,13 @@
|
||||
is not provided, the "id" is required.
|
||||
</para>
|
||||
<para>
|
||||
As many other Spring Integration components <code><inbound-channel-adapter></code> and <code><outbound-channel-adapter></code>
|
||||
also provide support for SpEL expression via 'expression' attribute in contrast to method-invocation via 'bean reference/method', while following the same contract where:
|
||||
<emphasis>expression</emphasis> for <code><inbound-channel-adapter></code> must always return <emphasis>non-null</emphasis> value,
|
||||
while the one for <code><outbound-channel-adapter></code> must be equivalent of <emphasis>void</emphasis> return type.
|
||||
Like many other Spring Integration components, the <code><inbound-channel-adapter></code> and
|
||||
<code><outbound-channel-adapter></code> 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 <emphasis>expression</emphasis> for an <code><inbound-channel-adapter></code> will generate a message anytime the
|
||||
evaluation result is a <emphasis>non-null</emphasis> value, while the <emphasis>expression</emphasis> for an
|
||||
<code><outbound-channel-adapter></code> must be the equivalent of a <emphasis>void</emphasis> returning method invocation.
|
||||
</para>
|
||||
</section>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user