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
| Constructor and Description |
|---|
FeignClientFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomizer(FeignBuilderCustomizer customizer) |
void |
afterPropertiesSet() |
protected void |
configureFeign(FeignContext context,
feign.Feign.Builder builder) |
protected void |
configureUsingConfiguration(FeignContext context,
feign.Feign.Builder builder) |
protected void |
configureUsingProperties(FeignClientProperties.FeignClientConfiguration config,
feign.Feign.Builder builder) |
boolean |
equals(Object o) |
protected feign.Feign.Builder |
feign(FeignContext context) |
protected <T> T |
get(FeignContext context,
Class<T> type) |
org.springframework.context.ApplicationContext |
getApplicationContext() |
String |
getContextId() |
Class<?> |
getFallback() |
Class<?> |
getFallbackFactory() |
protected <T> Map<String,T> |
getInheritedAwareInstances(FeignContext context,
Class<T> type) |
protected <T> T |
getInheritedAwareOptional(FeignContext context,
Class<T> type) |
String |
getName() |
Object |
getObject() |
Class<?> |
getObjectType() |
protected <T> T |
getOptional(FeignContext context,
Class<T> type) |
protected feign.Request.Options |
getOptionsByName(FeignContext context,
String contextId)
Meant to get Options bean from context with bean name.
|
String |
getPath() |
Class<?> |
getType() |
String |
getUrl() |
int |
hashCode() |
boolean |
isDecode404() |
boolean |
isInheritParentContext() |
boolean |
isSingleton() |
protected <T> T |
loadBalance(feign.Feign.Builder builder,
FeignContext context,
feign.Target.HardCodedTarget<T> target) |
void |
setApplicationContext(org.springframework.context.ApplicationContext context) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setContextId(String contextId) |
void |
setDecode404(boolean decode404) |
void |
setFallback(Class<?> fallback) |
void |
setFallbackFactory(Class<?> fallbackFactory) |
void |
setInheritParentContext(boolean inheritParentContext) |
void |
setName(String name) |
void |
setPath(String path) |
void |
setRefreshableClient(boolean refreshableClient) |
void |
setType(Class<?> type) |
void |
setUrl(String url) |
String |
toString() |
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanprotected feign.Feign.Builder feign(FeignContext context)
protected void configureFeign(FeignContext context, feign.Feign.Builder builder)
protected void configureUsingConfiguration(FeignContext context, feign.Feign.Builder builder)
protected void configureUsingProperties(FeignClientProperties.FeignClientConfiguration config, feign.Feign.Builder builder)
protected <T> T get(FeignContext context, Class<T> type)
protected <T> T getOptional(FeignContext context, Class<T> type)
protected <T> T getInheritedAwareOptional(FeignContext context, Class<T> type)
protected <T> Map<String,T> getInheritedAwareInstances(FeignContext context, Class<T> type)
protected <T> T loadBalance(feign.Feign.Builder builder,
FeignContext context,
feign.Target.HardCodedTarget<T> target)
protected feign.Request.Options getOptionsByName(FeignContext context, String contextId)
context - context of Feign clientcontextId - name of feign clientpublic Object getObject()
getObject in interface org.springframework.beans.factory.FactoryBean<Object>public Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<Object>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<Object>public Class<?> getType()
public void setType(Class<?> type)
public String getName()
public void setName(String name)
public String getContextId()
public void setContextId(String contextId)
public String getUrl()
public void setUrl(String url)
public String getPath()
public void setPath(String path)
public boolean isDecode404()
public void setDecode404(boolean decode404)
public boolean isInheritParentContext()
public void setInheritParentContext(boolean inheritParentContext)
public void addCustomizer(FeignBuilderCustomizer customizer)
public org.springframework.context.ApplicationContext getApplicationContext()
public void setApplicationContext(org.springframework.context.ApplicationContext context)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic Class<?> getFallback()
public void setFallback(Class<?> fallback)
public Class<?> getFallbackFactory()
public void setFallbackFactory(Class<?> fallbackFactory)
public void setRefreshableClient(boolean refreshableClient)
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionCopyright © 2022 Pivotal Software, Inc.. All rights reserved.