Class FeignServiceClientFactory

java.lang.Object
cn.sliew.carp.framework.feign.client.FeignServiceClientFactory
All Implemented Interfaces:
ServiceClientFactory

public class FeignServiceClientFactory extends Object implements ServiceClientFactory
  • Constructor Details

    • FeignServiceClientFactory

      public FeignServiceClientFactory()
  • Method Details

    • create

      public <T> T create(Class<T> type, ServiceEndpoint serviceEndpoint)
      Description copied from interface: ServiceClientFactory
      Builds a concrete client capable of making HTTP calls.
      Specified by:
      create in interface ServiceClientFactory
      Type Parameters:
      T - type of client , usually an interface with all the remote method definitions.
      Parameters:
      type - client type
      serviceEndpoint - endpoint configuration
      Returns:
      an implementation of the type of client given.