Class DecoratedFeignComponent<T>
java.lang.Object
io.microsphere.spring.cloud.openfeign.components.DecoratedFeignComponent<T>
- All Implemented Interfaces:
Refreshable
- Direct Known Subclasses:
DecoratedContract,DecoratedDecoder,DecoratedEncoder,DecoratedErrorDecoder,DecoratedQueryMapEncoder,DecoratedRetryer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDecoratedFeignComponent(String contextId, org.springframework.cloud.context.named.NamedContextFactory<org.springframework.cloud.openfeign.FeignClientSpecification> contextFactory, org.springframework.cloud.openfeign.FeignClientProperties clientProperties, T delegate) -
Method Summary
Modifier and TypeMethodDescriptiondelegate()booleanprotected <T> Tget(Function<org.springframework.cloud.openfeign.FeignClientProperties.FeignClientConfiguration, T> configurationFunction) org.springframework.cloud.openfeign.FeignClientProperties.FeignClientConfigurationorg.springframework.cloud.openfeign.FeignClientProperties.FeignClientConfigurationinthashCode()static <W extends DecoratedFeignComponent<T>,T>
Winstantiate(Class<W> decoratedClass, Class<? extends T> componentClass, String contextId, org.springframework.cloud.context.named.NamedContextFactory<org.springframework.cloud.openfeign.FeignClientSpecification> contextFactory, org.springframework.cloud.openfeign.FeignClientProperties clientProperties, T delegate) protected T<T> TloadInstanceFromContextFactory(String contextId, Class<T> componentType) voidrefresh()RefreshtoString()
-
Field Details
-
logger
protected final io.microsphere.logging.Logger logger -
delegate
-
-
Constructor Details
-
DecoratedFeignComponent
-
-
Method Details
-
delegate
-
loadInstanceFromContextFactory
-
contextId
-
refresh
public void refresh()Description copied from interface:RefreshableRefresh- Specified by:
refreshin interfaceRefreshable
-
componentType
-
getDefaultConfiguration
public org.springframework.cloud.openfeign.FeignClientProperties.FeignClientConfiguration getDefaultConfiguration() -
getCurrentConfiguration
public org.springframework.cloud.openfeign.FeignClientProperties.FeignClientConfiguration getCurrentConfiguration() -
get
protected <T> T get(Function<org.springframework.cloud.openfeign.FeignClientProperties.FeignClientConfiguration, T> configurationFunction) -
loadInstance
-
hashCode
public int hashCode() -
equals
-
toString
-
instantiate
public static <W extends DecoratedFeignComponent<T>,T> W instantiate(Class<W> decoratedClass, Class<? extends T> componentClass, String contextId, org.springframework.cloud.context.named.NamedContextFactory<org.springframework.cloud.openfeign.FeignClientSpecification> contextFactory, org.springframework.cloud.openfeign.FeignClientProperties clientProperties, T delegate)
-