Skip to content

Conversation

ngocnhan-tran1996
Copy link
Contributor

Related to: #10083

Related to: spring-projects#10083

Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
* @param routeVariables the variables to expand route template.
*/
@SuppressWarnings("this-escape")
public RSocketOutboundGateway(Expression routeExpression, Object @Nullable [] routeVariables) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, revise this to be a private ctor.
I don't want to encourage users to follow this pattern.
It is really better to do that how it is explained in JavaDocs: fully via expression.
The expression is going to be evaluated against request message at runtime, and there you can build the route whatever way you need.

Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
@artembilan artembilan merged commit 3df47ea into spring-projects:main Aug 13, 2025
3 checks passed
@ngocnhan-tran1996 ngocnhan-tran1996 deleted the gh-10083-scripting-rsocket branch August 13, 2025 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants