-
Extract ribbon client factory into ApplicationContext · 64179235Dave Syer authored
Using Spring as an object factory to control the lifecycle of ribbon clients. So far we have a single, parameterized configuration class for all clients, but can be extended to allow user to supply additional configuration. The current model for user extensions is @EnableRibbonClient(@RibbonClient(name = "foo", configuration = FooConfiguration.class)) public class MainConfiguration { ... } So in this example, MainConfiguration is part of the "main" application context and FooConfiguration is used to create the Ribbon client and load balancer for the "foo" service.
64179235