Skip to content

Commit 8d1dd0b

Browse files
committed
Some docs clean up
1 parent 8ba27f6 commit 8d1dd0b

File tree

3 files changed

+9
-37
lines changed

3 files changed

+9
-37
lines changed

src/reference/asciidoc/claim-check.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ The following listing provides an overview of all available parameters of an inc
4747
====
4848
[source,xml]
4949
----
50-
<int:claim-check-in auto-startup="true" <1>
50+
<int:claim-check-in auto-startup="true" <1>
5151
id="" <2>
5252
input-channel="" <3>
5353
message-store="messageStore" <4>
@@ -112,7 +112,7 @@ The following listing provides an overview of all available parameters of an out
112112
====
113113
[source,xml]
114114
----
115-
<int:claim-check-out auto-startup="true" <1>
115+
<int:claim-check-out auto-startup="true" <1>
116116
id="" <2>
117117
input-channel="" <3>
118118
message-store="messageStore" <4>

src/reference/asciidoc/content-enrichment.adoc

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,7 @@ Optional.
314314
<6> By default, the original message's payload is used as payload that is sent to the `request-channel`.
315315
By specifying a SpEL expression as the value for the `request-payload-expression` attribute, you can use a subset of the original payload, a header value, or any other resolvable SpEL expression as the basis for the payload that is sent to the request-channel.
316316
For the expression evaluation, the full message is available as the 'root object'.
317-
For instance, the following SpEL expressions (among others) are possible:
318-
* `payload.something`
319-
* `headers.something`
320-
* `new java.util.Date()`
321-
* `'thing1' + 'thing2'`
317+
For instance, the following SpEL expressions (among others) are possible: `payload.something`, `headers.something`, `new java.util.Date()`, `'thing1' + 'thing2'`
322318
<7> Channel where a reply message is expected.
323319
This is optional.
324320
Typically, the auto-generated temporary reply channel suffices.
@@ -343,7 +339,7 @@ Optional.
343339
<12> Each `property` sub-element provides the name of a property (through the mandatory `name` attribute).
344340
That property should be settable on the target payload instance.
345341
Exactly one of the `value` or `expression` attributes must be provided as well -- the former for a literal value to set and the latter for a SpEL expression to be evaluated.
346-
The root object of the evaluation context is the message that was returned from the flow initiated by this enricher -- the input message if there is no request channel or the application context (using the '@<beanName>.<beanProperty>' SpEL syntax).
342+
The root object of the evaluation context is the message that was returned from the flow initiated by this enricher -- the input message if there is no request channel or the application context (using the `@<beanName>.<beanProperty>` SpEL syntax).
347343
Starting with version 4.0, when specifying a `value` attribute, you can also specify an optional `type` attribute.
348344
When the destination is a typed setter method, the framework coerces the value appropriately (as long as a `PropertyEditor`) exists to handle the conversion.
349345
If, however, the target payload is a `Map`, the entry is populated with the value without conversion.

src/reference/asciidoc/transformer.adoc

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ For more information on those transformers, see <<./xml.adoc#xml,XML Support - D
1818
==== Configuring a Transformer with XML
1919

2020
The `<transformer>` element is used to create a message-transforming endpoint.
21-
In addition to `input-channel` and `output-channel` attributes, it requires a ` attribute`.
21+
In addition to `input-channel` and `output-channel` attributes, it requires a `ref` attribute.
2222
The `ref` may either point to an object that contains the `@Transformer` annotation on a single method (see <<transformer-annotation>>), or it may be combined with an explicit method name value provided in the `method` attribute.
2323

2424
====
@@ -70,7 +70,7 @@ The following example shows how to use a SpEL expression:
7070
----
7171
<int:transformer input-channel="inChannel"
7272
output-channel="outChannel"
73-
expression="payload.toUpperCase() + '- [' + T(java.lang.System).currentTimeMillis() + ']'"/>
73+
expression="payload.toUpperCase() + '- [' + T(System).currentTimeMillis() + ']'"/>
7474
----
7575
====
7676

@@ -99,7 +99,7 @@ Whereas that channel adapter only supports `String`, byte-array, or `java.io.Fil
9999
That works fine as long as the result of the `toString()` call is what you want to be written to the file.
100100
Otherwise, you can provide a custom POJO-based transformer by using the generic 'transformer' element shown previously.
101101

102-
TIP: When debugging, this transformer is not typically necessary, since the 'logging-channel-adapter' is capable of logging the message payload.
102+
TIP: When debugging, this transformer is not typically necessary, since the `logging-channel-adapter` is capable of logging the message payload.
103103
See <<./channel.adoc#channel-wiretap,Wire Tap>> for more detail.
104104

105105
[NOTE]
@@ -122,7 +122,7 @@ For more sophistication (such as selection of the charset dynamically, at runtim
122122
====
123123

124124
If you need to serialize an `Object` to a byte array or deserialize a byte array back into an `Object`, Spring Integration provides symmetrical serialization transformers.
125-
These use standard Java serialization by default, but you can provide an implementation of Spring 3.0's serializer or seserializer strategies by using the 'serializer' and 'deserializer' attributes, respectively.
125+
These use standard Java serialization by default, but you can provide an implementation of Spring 3.0's serializer or seserializer strategies by using the `serializer` and `deserializer` attributes, respectively.
126126
The following example shows to use Spring's serializer and deserializer:
127127

128128
====
@@ -194,7 +194,7 @@ public class Kid {
194194
----
195195
====
196196

197-
If you need to create a "`structured`" map, you can provide the 'flatten' attribute.
197+
If you need to create a "`structured`" map, you can provide the `flatten` attribute.
198198
The default is 'true'.
199199
If you set it to 'false', the structure is a `Map` of `Map` objects.
200200

@@ -345,31 +345,7 @@ Beginning with version 3.0, the `object-mapper` attribute references an instance
345345
This abstraction lets multiple implementations of JSON mappers be used.
346346
Implementation that wraps https://github.com/FasterXML[Jackson 2] is provided, with the version being detected on the classpath.
347347
The class is `Jackson2JsonObjectMapper`, respectively.
348-
349-
NOTE: The `BoonJsonObjectMapper` is deprecated in 5.2 since the library is out of support.
350-
====
351-
352-
[IMPORTANT]
353348
====
354-
If you have requirements to use both Jackson and Boon in the same application, keep in mind that, before version 3.0, the JSON transformers used only Jackson 1.x.
355-
From 4.1 on, the framework selects Jackson 2 by default.
356-
Jackson 1.x is no longer supported by the framework internally.
357-
However, you can still use it within your code by including the necessary library.
358-
To avoid unexpected issues with JSON mapping features when you use annotations, you may need to apply annotations from both Jackson and Boon on domain classes, as the following example shows:
359-
360-
[source,java]
361-
----
362-
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown=true)
363-
public class Thing1 {
364-
365-
@com.fasterxml.jackson.annotation.JsonProperty("thing1Thing2")
366-
public Object thing2;
367-
368-
}
369-
----
370-
====
371-
372-
NOTE: Boon support has been deprecated since version 5.2.
373349

374350
You may wish to consider using a `FactoryBean` or a factory method to create the `JsonObjectMapper` with the required characteristics.
375351
The following example shows how to use such a factory:

0 commit comments

Comments
 (0)