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:
@@ -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(
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user