Class FeignClientFactoryBean

java.lang.Object
org.springframework.cloud.openfeign.FeignClientFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.FactoryBean<Object>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class FeignClientFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<Object>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.BeanFactoryAware
Author:
Spencer Gibb, Venil Noronha, Eko Kurniawan Khannedy, Gregor Zurowski, Matt King, Olga Maciaszek-Sharma, Ilia Ilinykh, Marcin Grzejszczak, Jonatan Ivanov, Sam Kruglov, Jasbir Singh, Hyeonmin Park, Felix Dittrich
  • Constructor Details

    • FeignClientFactoryBean

      public FeignClientFactoryBean()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • feign

      protected feign.Feign.Builder feign(FeignContext context)
    • configureFeign

      protected void configureFeign(FeignContext context, feign.Feign.Builder builder)
    • configureUsingConfiguration

      protected void configureUsingConfiguration(FeignContext context, feign.Feign.Builder builder)
    • configureUsingProperties

      protected void configureUsingProperties(FeignClientProperties.FeignClientConfiguration config, feign.Feign.Builder builder)
    • get

      protected <T> T get(FeignContext context, Class<T> type)
    • getOptional

      protected <T> T getOptional(FeignContext context, Class<T> type)
    • getInheritedAwareOptional

      protected <T> T getInheritedAwareOptional(FeignContext context, Class<T> type)
    • getInheritedAwareInstances

      protected <T> Map<String,T> getInheritedAwareInstances(FeignContext context, Class<T> type)
    • loadBalance

      protected <T> T loadBalance(feign.Feign.Builder builder, FeignContext context, feign.Target.HardCodedTarget<T> target)
    • getOptionsByName

      protected feign.Request.Options getOptionsByName(FeignContext context, String contextId)
      Meant to get Options bean from context with bean name.
      Parameters:
      context - context of Feign client
      contextId - name of feign client
      Returns:
      returns Options found in context
    • getObject

      public Object getObject()
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<Object>
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<Object>
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean<Object>
    • getType

      public Class<?> getType()
    • setType

      public void setType(Class<?> type)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getContextId

      public String getContextId()
    • setContextId

      public void setContextId(String contextId)
    • getUrl

      public String getUrl()
    • setUrl

      public void setUrl(String url)
    • getPath

      public String getPath()
    • setPath

      public void setPath(String path)
    • isDecode404

      public boolean isDecode404()
    • setDecode404

      public void setDecode404(boolean decode404)
    • isInheritParentContext

      public boolean isInheritParentContext()
    • setInheritParentContext

      public void setInheritParentContext(boolean inheritParentContext)
    • addCustomizer

      public void addCustomizer(FeignBuilderCustomizer customizer)
    • getApplicationContext

      public org.springframework.context.ApplicationContext getApplicationContext()
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext context) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • getFallback

      public Class<?> getFallback()
    • setFallback

      public void setFallback(Class<?> fallback)
    • getFallbackFactory

      public Class<?> getFallbackFactory()
    • setFallbackFactory

      public void setFallbackFactory(Class<?> fallbackFactory)
    • setRefreshableClient

      public void setRefreshableClient(boolean refreshableClient)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException