Class DecoratedFeignComponent<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected T delegate  
      protected io.microsphere.logging.Logger logger  
    • 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<? extends T> componentType()  
      java.lang.String contextId()  
      T delegate()  
      boolean equals​(java.lang.Object obj)  
      protected <T> T get​(java.util.function.Function<org.springframework.cloud.openfeign.FeignClientProperties.FeignClientConfiguration,​T> configurationFunction)  
      org.springframework.cloud.openfeign.FeignClientProperties.FeignClientConfiguration getCurrentConfiguration()  
      org.springframework.cloud.openfeign.FeignClientProperties.FeignClientConfiguration getDefaultConfiguration()  
      int hashCode()  
      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)  
      protected T loadInstance()  
      <T> T loadInstanceFromContextFactory​(java.lang.String contextId, java.lang.Class<T> componentType)  
      void refresh()
      Refresh
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • logger

        protected final io.microsphere.logging.Logger logger
      • 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()
      • loadInstanceFromContextFactory

        @NonNull
        public <T> T loadInstanceFromContextFactory​(java.lang.String contextId,
                                                    java.lang.Class<T> componentType)
      • contextId

        @NonNull
        public java.lang.String contextId()
      • componentType

        protected abstract java.lang.Class<? extends T> componentType()
      • getDefaultConfiguration

        public org.springframework.cloud.openfeign.FeignClientProperties.FeignClientConfiguration getDefaultConfiguration()
      • getCurrentConfiguration

        public org.springframework.cloud.openfeign.FeignClientProperties.FeignClientConfiguration getCurrentConfiguration()
      • get

        protected <T> T get​(java.util.function.Function<org.springframework.cloud.openfeign.FeignClientProperties.FeignClientConfiguration,​T> configurationFunction)
      • loadInstance

        protected T loadInstance()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.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)