Class LoadBalancerWebClientBuilderBeanPostProcessor
java.lang.Object
org.springframework.cloud.client.loadbalancer.reactive.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 Summary
ConstructorsConstructorDescriptionLoadBalancerWebClientBuilderBeanPostProcessor
(DeferringLoadBalancerExchangeFilterFunction exchangeFilterFunction, org.springframework.context.ApplicationContext context) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessAfterInitialization
-
Constructor Details
-
LoadBalancerWebClientBuilderBeanPostProcessor
public LoadBalancerWebClientBuilderBeanPostProcessor(DeferringLoadBalancerExchangeFilterFunction exchangeFilterFunction, org.springframework.context.ApplicationContext context)
-
-
Method Details
-
postProcessBeforeInitialization
public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessBeforeInitialization
in interfaceorg.springframework.beans.factory.config.BeanPostProcessor
- Throws:
org.springframework.beans.BeansException
-