Closed yairogen closed 8 years ago
ConsulServerList
requires dependencies be injected by Spring. Why are you needing to do this? Using spring-cloud-consul should autowire ConsulServerList
. Using @RibbonClient
is how we wire spring classes into ribbon.
I have an existing library that wraps rxnetty. This library is initialized using a factory api and doesn't impose spring injection as default as to not change backward compatibility. I'd expect spring consul support to follow the lines of spring cloud eureka support. The latter does support setting classes externally and configure them based on configuration rather than injection.
Not using spring injection is not currently a goal.
@spencergibb is rxnetty supported by @RibbonClient?
We don't have any explicit support for rxnetty anywhere.
Hence my need to support non injected clients as my customers need good async clients that use ribbon.
We support spring and spring-boot. There is work being done in the spring framework to support netty and reactive workflows.
I'm comparing Eureka VS Consul and I can't set the server list: ConsulServerList class from config as it doesn't have a default empty constructor.
In Eureka client and ribbon-core I used this:
And this worked fine.
Trying this:
Fails on: