INT-1501 initial refactoing of the transformer section to address better docs for header-enricher

This commit is contained in:
Oleg Zhurakousky
2010-11-10 10:52:53 -05:00
parent 8e2daea503
commit 30e106eeb0
4 changed files with 43 additions and 8 deletions

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<section xmlns="http://docbook.org/ns/docbook" version="5.0" xml:id="claim-check"
xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Claim Check</title>
<section id="claim-check-introduction">
<title>Introduction</title>
</section>
</section>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<section xmlns="http://docbook.org/ns/docbook" version="5.0" xml:id="content-enricher"
xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Content Enricher</title>
<section id="content-enricher-introduction">
<title>Introduction</title>
<para>
Some time you may have a requirement to enhance a request with more information then it was
provided by the target system. <link href="http://www.eaipatterns.com/DataEnricher.html">Content Enricher</link> pattern
describes various scenarios as well as the component (Enricher), which allows you to address such requirements.
</para>
</section>
<section id="header-enricher">
<title>Header Enricher</title>
<para>
If you only need to add headers to a Message, and they are not dynamically determined by Message content,
then referencing a custom implementation may be overkill. For that reason, Spring Integration provides the
'header-enricher' element. <programlisting language="xml"><![CDATA[ <header-enricher input-channel="in" output-channel="out">
<header name="foo" value="123"/>
<header name="bar" ref="someBean"/>
</header-enricher>]]></programlisting>
</para>
</section>
</section>

View File

@@ -5,5 +5,6 @@
<title>Message Transformation</title>
<xi:include href="./transformer.xml"/>
<xi:include href="./content-enrichment.xml"/>
<xi:include href="./claim-check.xml"/>
</chapter>

View File

@@ -88,13 +88,8 @@
<payload-deserializing-transformer input-channel="bytesIn" output-channel="objectsOut"/>]]></programlisting>
</para>
<para>
If you only need to add headers to a Message, and they are not dynamically determined by Message content,
then referencing a custom implementation may be overkill. For that reason, Spring Integration provides the
'header-enricher' element. <programlisting language="xml"><![CDATA[ <header-enricher input-channel="in" output-channel="out">
<header name="foo" value="123"/>
<header name="bar" ref="someBean"/>
</header-enricher>]]></programlisting>
<para>
<emphasis>Object-to-Map Transformer</emphasis>
</para>
<para>
As added convenience, Spring Integration also provides <emphasis>Object-to-Map</emphasis> and <emphasis>Map-to-Object</emphasis> transformers which