Interface ServiceClientProvider
-
- All Known Implementing Classes:
DefaultServiceClientProvider
public interface ServiceClientProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> TgetService(java.lang.Class<T> type, ServiceEndpoint serviceEndpoint)Returns the concrete retrofit service client<T> TgetService(java.lang.Class<T> type, ServiceEndpoint serviceEndpoint, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Returns the concrete retrofit service client
-
-
-
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 typeserviceEndpoint- 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 typeserviceEndpoint- endpoint definitionobjectMapper- object mapper for conversion- Returns:
- the retrofit interface implementation
-
-