Class LoadBalancerWebClientBuilderBeanPostProcessor

  • All Implemented Interfaces:
    org.springframework.beans.factory.config.BeanPostProcessor

    public class LoadBalancerWebClientBuilderBeanPostProcessor
    extends Object
    implements org.springframework.beans.factory.config.BeanPostProcessor
    A BeanPostProcessor that applies DeferringLoadBalancerExchangeFilterFunction filter to all WebClient.Builder instances annotated with LoadBalanced.
    Since:
    2.2.0
    Author:
    Olga Maciaszek-Sharma
    • Constructor Detail

      • LoadBalancerWebClientBuilderBeanPostProcessor

        public LoadBalancerWebClientBuilderBeanPostProcessor​(DeferringLoadBalancerExchangeFilterFunction exchangeFilterFunction,
                                                             org.springframework.context.ApplicationContext context)
    • Method Detail

      • postProcessBeforeInitialization

        public Object postProcessBeforeInitialization​(Object bean,
                                                      String beanName)
                                               throws org.springframework.beans.BeansException
        Specified by:
        postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
        Throws:
        org.springframework.beans.BeansException