Interface ServiceClientProvider
- All Known Implementing Classes:
DefaultServiceClientProvider
public interface ServiceClientProvider
-
Method Summary
Modifier and TypeMethodDescription<T> TgetService(Class<T> type, ServiceEndpoint serviceEndpoint) Returns the concrete retrofit service client<T> TgetService(Class<T> type, ServiceEndpoint serviceEndpoint, com.fasterxml.jackson.databind.ObjectMapper objectMapper) Returns the concrete retrofit service client
-
Method Details
-
getService
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(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
-