Interface ServiceClientProvider

All Known Implementing Classes:
DefaultServiceClientProvider

public interface ServiceClientProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    getService(Class<T> type, ServiceEndpoint serviceEndpoint)
    Returns the concrete retrofit service client
    <T> T
    getService(Class<T> type, ServiceEndpoint serviceEndpoint, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    Returns the concrete retrofit service client
  • Method Details

    • getService

      <T> T getService(Class<T> type, ServiceEndpoint serviceEndpoint)
      Returns the concrete retrofit service client
      Type Parameters:
      T - type of client , usually a interface with all the remote method definitions.
      Parameters:
      type - retrofit interface type
      serviceEndpoint - endpoint definition
      Returns:
      the retrofit interface implementation
    • getService

      <T> T getService(Class<T> type, ServiceEndpoint serviceEndpoint, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      Returns the concrete retrofit service client
      Type Parameters:
      T - type of client , usually a interface with all the remote method definitions.
      Parameters:
      type - retrofit interface type
      serviceEndpoint - endpoint definition
      objectMapper - object mapper for conversion
      Returns:
      the retrofit interface implementation