Interface ServiceClientProvider

    • Method Detail

      • getService

        <T> T getService​(java.lang.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​(java.lang.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