Skip to content

Commit a4d070e

Browse files
committed
* Fix typos in Docs
1 parent e7786f6 commit a4d070e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/reference/asciidoc/kotlin-dsl.adoc

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[[kotlin-dsl]]
22
== Kotlin DSL
33

4-
The Kotlin DSL is a wrapper and extension to <<./dsl.adoc#java-dsl,Java DSL>> and aimed to make Spring Integration development on Kotlin as smooth and straightforward as is it possible with interoperability with existing Java API and Kotlin language-specific structures.
4+
The Kotlin DSL is a wrapper and extension to <<./dsl.adoc#java-dsl,Java DSL>> and aimed to make Spring Integration development on Kotlin as smooth and straightforward as possible with interoperability with the existing Java API and Kotlin language-specific structures.
55

66
All you need to get started is just an import for `org.springframework.integration.dsl.integrationFlow` - an overloaded global function for Kotlin DSL.
77

@@ -41,7 +41,7 @@ Such a global `integrationFlow()` function expects a lambda in builder style for
4141
See more overloaded `integrationFlow()` variants below.
4242

4343
Many other scenarios require an `IntegrationFlow` to be started from source of data (e.g. `JdbcPollingChannelAdapter`, `JmsInboundGateway` or just an existing `MessageChannel`).
44-
For this purpose Spring Integration Java DSL provides an `IntegrationFlows` factory with its bunch of overloaded `from()` methods.
44+
For this purpose, the Spring Integration Java DSL provides an `IntegrationFlows` factory with its large number of overloaded `from()` methods.
4545
This factory can be used in Kotlin as well:
4646

4747
====
@@ -56,8 +56,8 @@ fun flowFromSupplier() =
5656
====
5757

5858
But unfortunately not all `from()` methods are compatible with Kotlin structures.
59-
To fix a gap, this project provides a Kotlin DSL around an `IntegrationFlows` factory.
60-
It is done as a set of overloaded `integrationFlow()` functions.
59+
To fix the gap, this project provides a Kotlin DSL around an `IntegrationFlows` factory.
60+
It is implemented as a set of overloaded `integrationFlow()` functions.
6161
With a consumer for a `KotlinIntegrationFlowDefinition` to declare the rest of the flow as an `IntegrationFlow` lambda to reuse the mentioned above experience and also avoid `get()` call in the end.
6262
For example:
6363

@@ -79,7 +79,7 @@ fun messageSourceFlow() =
7979
----
8080
====
8181

82-
In addition Kotlin extensions are provided for Java DSL API which needs some refinement for Kotlin structures.
82+
In addition, Kotlin extensions are provided for the Java DSL API which needs some refinement for Kotlin structures.
8383
For example `IntegrationFlowDefinition<*>` requires a reifying for many methods with `Class<P>` argument:
8484

8585
====

0 commit comments

Comments
 (0)