Class TraceRestTemplateBeanPostProcessor

java.lang.Object
org.springframework.cloud.sleuth.instrument.web.client.TraceRestTemplateBeanPostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor

public class TraceRestTemplateBeanPostProcessor extends Object implements org.springframework.beans.factory.config.BeanPostProcessor
Wraps RestTemplate with trace interceptors.
Since:
3.0.0
Author:
Marcin Grzejszczak
  • Constructor Details

    • TraceRestTemplateBeanPostProcessor

      public TraceRestTemplateBeanPostProcessor(org.springframework.beans.factory.BeanFactory beanFactory)
  • Method Details

    • 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
    • postProcessAfterInitialization

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