Polish "Apply RSocketConnectorConfigurer beans to RSocketRequester.Builder"

See gh-26341
This commit is contained in:
Stephane Nicoll
2021-05-31 14:44:15 +02:00
parent 850c653862
commit 6b4efcce11
3 changed files with 10 additions and 12 deletions

View File

@@ -73,7 +73,7 @@ Once the `RSocket` channel is established between server and client, any party c
As a server, you can get injected with an `RSocketRequester` instance on any handler method of an RSocket `@Controller`.
As a client, you need to configure and establish an RSocket connection first.
Spring Boot auto-configures an `RSocketRequester.Builder` for such cases with the expected codecs.
Spring Boot auto-configures an `RSocketRequester.Builder` for such cases with the expected codecs and apply any `RSocketConnectorConfigurer` bean.
The `RSocketRequester.Builder` instance is a prototype bean, meaning each injection point will provide you with a new instance .
This is done on purpose since this builder is stateful and you shouldn't create requesters with different setups using the same instance.