GH-3800: Fix Kotlin docs for route() DSL

Fixes https://github.com/spring-projects/spring-integration/issues/3800

* Mention `Message` as a type for reified generic argument in Kotlin DSL docs

**Cherry-pick to `5.5.x`**
This commit is contained in:
Artem Bilan
2022-05-17 15:04:21 -04:00
parent 5a92d1fcdd
commit 627a797d49
2 changed files with 3 additions and 2 deletions

View File

@@ -145,7 +145,7 @@ class KotlinIntegrationFlowDefinition(@PublishedApi internal val delegate: Integ
/**
* Inline function for [IntegrationFlowDefinition.filter] providing a `filter<MyTypeIn>()` variant
* Inline function for [IntegrationFlowDefinition.route] providing a `route<MyTypeIn>()` variant
* with reified generic type.
*/
inline fun <reified P> route(crossinline function: (P) -> Any?) {
@@ -153,7 +153,7 @@ class KotlinIntegrationFlowDefinition(@PublishedApi internal val delegate: Integ
}
/**
* Inline function for [IntegrationFlowDefinition.filter] providing a `filter<MyTypeIn>()` variant
* Inline function for [IntegrationFlowDefinition.route] providing a `route<MyTypeIn>()` variant
* with reified generic type.
*/
inline fun <reified P, T> route(

View File

@@ -93,4 +93,5 @@ fun convertFlow() =
----
====
NOTE: The reified type can be a whole `Message<*>` if there need access to headers as well in the lambda of the operator.