Skip to content

RouterSpec channelMapping takes no MessageChannel. #2754

Closed
@dschulten

Description

@dschulten

Affects Version(s): 5.1.3

Enhancement

AbstractRouterSpec.defaultOutputChannel takes both a channelName and a MessageChannel.
However, RouterSpec.channelMapping only takes a channelName, but not a MessageChannel.

When using the DSL, I try to avoid explicit channel names and prefer the IntegrationFlow.getInputChannel() method to look up the input channel for a flow.

Currently I must use "mySubflow.input" for the channelMapping but I can use defaultOutputChannel(mySubFlow().getInputChannel()) for the default.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions