Merge pull request #214 from artembilan/INT-2273
This commit is contained in:
@@ -118,9 +118,18 @@
|
||||
<para>
|
||||
Any Channel Adapter can be created without a "channel" reference in which case it will implicitly create an
|
||||
instance of <classname>DirectChannel</classname>. 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 <code><inbound-channel-adapter></code> or <code><outbound-channel-adapter></code> element. Therefore, if the "channel"
|
||||
is not provided, the "id" is required.
|
||||
</para>
|
||||
<para>
|
||||
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>
|
||||
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user