Add Builder to RSocketServiceProxyFactory

RSocketServiceProxyFactory now support programmatic initialization
through a builder, while bean-style initialization is deprecated.

Closes gh-29296
This commit is contained in:
rstoyanchev
2022-10-19 14:36:45 +01:00
parent bd59c7a691
commit d4f7484252
5 changed files with 360 additions and 98 deletions

View File

@@ -935,8 +935,7 @@ Two, create a proxy that will perform the declared RSocket exchanges:
[source,java,indent=0,subs="verbatim,quotes"]
----
RSocketRequester requester = ... ;
RSocketServiceProxyFactory factory = new RSocketServiceProxyFactory(requester);
factory.afterPropertiesSet();
RSocketServiceProxyFactory factory = RSocketServiceProxyFactory.builder(requester).build();
RepositoryService service = factory.createClient(RadarService.class);
----