Class FeignContext
java.lang.Object
org.springframework.cloud.context.named.NamedContextFactory<FeignClientSpecification>
org.springframework.cloud.openfeign.FeignContext
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.DisposableBean
,org.springframework.context.ApplicationContextAware
public class FeignContext
extends org.springframework.cloud.context.named.NamedContextFactory<FeignClientSpecification>
A factory that creates instances of feign classes. It creates a Spring
ApplicationContext per client name, and extracts the beans that it needs from there.
- Author:
- Spencer Gibb, Dave Syer, Matt King, Jasbir Singh
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.cloud.context.named.NamedContextFactory
org.springframework.cloud.context.named.NamedContextFactory.Specification
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
getInstance
(String contextName, String beanName, Class<T> type) getInstancesWithoutAncestors
(String name, Class<T> type) <T> T
getInstanceWithoutAncestors
(String name, Class<T> type) Methods inherited from class org.springframework.cloud.context.named.NamedContextFactory
createContext, destroy, generateDisplayName, getContext, getContextNames, getInstance, getInstance, getInstance, getInstances, getLazyProvider, getParent, getProvider, setApplicationContext, setConfigurations
-
Constructor Details
-
FeignContext
public FeignContext()
-
-
Method Details
-
getInstanceWithoutAncestors
-
getInstancesWithoutAncestors
-
getInstance
-