while this might be a little beneficial, the only reason I wanted to do eager initialization, is because I don't know how to retrieve the ServiceInstanceListSupplier that is created lazily. In other words: how do I retrieve the ServiceInstanceListSupplier at runtime, after the first call to load balancer. I tried things like getBeansOfType(ServiceInstanceListSupplier.class) or using ObjectProvider, but none worked.
In case you think this should be a separate question, just let me know...
while this might be a little beneficial, the only reason I wanted to do eager initialization, is because I don't know how to retrieve the
ServiceInstanceListSupplier
that is created lazily. In other words: how do I retrieve theServiceInstanceListSupplier
at runtime, after the first call to load balancer. I tried things likegetBeansOfType(ServiceInstanceListSupplier.class)
or usingObjectProvider
, but none worked.In case you think this should be a separate question, just let me know...