INT-677, INT-682, INT-676 - Modified documentation around added support for inner-bean definition of message handlers within the namespace configuration.
This commit is contained in:
@@ -359,7 +359,20 @@
|
||||
<emphasis>Optional</emphasis>.</para>
|
||||
</callout>
|
||||
</calloutlist>
|
||||
|
||||
<para>
|
||||
Using a "ref" attribute is generally recommended if custom aggregator handler implementation can be reused in other <code><aggregator></code> definitions. However
|
||||
if custom aggregator handler implementation has to be scoped to a concrete definition of the <code><aggregator></code>, starting with v1.0.3, Spring Integration supports
|
||||
inner bean definitions for custom aggregator handlers within the <code><aggregator></code> element:
|
||||
<programlisting language="xml"><![CDATA[<aggregator input-channel="inChannel" method="sum" output-channel="outChannel">
|
||||
<beans:bean class="org.foo.TestAggregator"/>
|
||||
</aggregator>]]></programlisting>
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
Using both "ref" attribute and inner handler definition in the same <code><aggregator></code> configuration
|
||||
is not allowed, as it creates an ambiguous condition and will result in Exception being thrown
|
||||
</para>
|
||||
</note>
|
||||
<para>An implementation of the aggregator bean, for example, looks as
|
||||
follows:</para>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user