From 0947e9b27a85e3be19f6ab391f91da7d3e593d2e Mon Sep 17 00:00:00 2001 From: Oleg Zhurakousky Date: Tue, 18 Aug 2009 05:06:54 +0000 Subject: [PATCH] INT-703 - updated documentation --- .../src/channel-adapter.xml | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/spring-integration-reference/src/channel-adapter.xml b/spring-integration-reference/src/channel-adapter.xml index 110e3c8359..78bcd042c1 100644 --- a/spring-integration-reference/src/channel-adapter.xml +++ b/spring-integration-reference/src/channel-adapter.xml @@ -44,7 +44,7 @@
The <outbound-channel-adapter/> element - An "outbound-channel-adapter" element can also connect a MessageChannel to any + An "outbound-channel-adapter" element can also connect a MessageChannel to any POJO consumer method that should be invoked with the payload of Messages sent to that channel. ]]> If the channel being adapted is a PollableChannel, provide a poller sub-element: @@ -52,8 +52,26 @@ ]]> ]]>]]> + + +]]> + + Using a "ref" attribute is generally recommended if the POJO consumer implementation can be reused + in other <outbound-channel-adapter> definitions. However if the consumer implementation + should be scoped to a single definition of the <outbound-channel-adapter>, you can define it as inner bean: + + + ]]> +]]> + + + + Using both the "ref" attribute and an inner handler definition in the same <outbound-channel-adapter> + configuration is not allowed, as it creates an ambiguous condition and will result in an Exception being thrown. + + 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