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
public abstract class DecoratedFeignComponent<T> extends java.lang.Object implements Refreshable
- Since:
- 0.0.1
- Author:
- 韩超
-
-
Constructor Summary
Constructors Constructor Description DecoratedFeignComponent(java.lang.String contextId, org.springframework.cloud.openfeign.FeignContext feignContext, org.springframework.cloud.openfeign.FeignClientProperties clientProperties, T delegate)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.Class<T>componentType()java.lang.StringcontextId()Tdelegate()booleanequals(java.lang.Object obj)org.springframework.cloud.openfeign.FeignClientProperties.FeignClientConfigurationgetCurrentConfiguration()org.springframework.cloud.openfeign.FeignClientProperties.FeignClientConfigurationgetDefaultConfiguration()org.springframework.cloud.openfeign.FeignContextgetFeignContext()inthashCode()static <W extends DecoratedFeignComponent<T>,T>
Winstantiate(java.lang.Class<W> decoratedClass, java.lang.Class<T> componentClass, java.lang.String contextId, org.springframework.cloud.openfeign.FeignContext feignContext, org.springframework.cloud.openfeign.FeignClientProperties clientProperties, T delegate)protected TloadInstance()voidrefresh()java.lang.StringtoString()
-
-
-
Field Detail
-
delegate
protected volatile T delegate
-
-
Constructor Detail
-
DecoratedFeignComponent
public DecoratedFeignComponent(java.lang.String contextId, org.springframework.cloud.openfeign.FeignContext feignContext, org.springframework.cloud.openfeign.FeignClientProperties clientProperties, T delegate)
-
-
Method Detail
-
delegate
public T delegate()
-
getFeignContext
@NonNull public org.springframework.cloud.openfeign.FeignContext getFeignContext()
-
contextId
@NonNull public java.lang.String contextId()
-
refresh
public void refresh()
- Specified by:
refreshin interfaceRefreshable
-
componentType
protected abstract java.lang.Class<T> componentType()
-
getDefaultConfiguration
public org.springframework.cloud.openfeign.FeignClientProperties.FeignClientConfiguration getDefaultConfiguration()
-
getCurrentConfiguration
public org.springframework.cloud.openfeign.FeignClientProperties.FeignClientConfiguration getCurrentConfiguration()
-
loadInstance
protected T loadInstance()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
instantiate
public static <W extends DecoratedFeignComponent<T>,T> W instantiate(java.lang.Class<W> decoratedClass, java.lang.Class<T> componentClass, java.lang.String contextId, org.springframework.cloud.openfeign.FeignContext feignContext, org.springframework.cloud.openfeign.FeignClientProperties clientProperties, T delegate)
-
-