Interface ApiRegistryClientService
- All Known Implementing Classes:
DefaultApiRegistryClientService
public interface ApiRegistryClientService
Service layer implementation for client operations
-
Method Summary
Modifier and TypeMethodDescriptionbuildClientConfig(Class clientType, ConsumedDestinationModel destination) Method to build client configuration as map for the given client client proxy type<T> TlookupClient(Class<T> clientType) Generates a client proxy for a given client type
-
Method Details
-
lookupClient
Generates a client proxy for a given client type- Type Parameters:
T- the parametrised type for the client type- Parameters:
clientType- the type of the client- Returns:
- the client proxy
- Throws:
CredentialException- in case when failed to find the expected credential
-
buildClientConfig
Map<String,String> buildClientConfig(Class clientType, ConsumedDestinationModel destination) throws CredentialException Method to build client configuration as map for the given client client proxy type- Parameters:
clientType- the type of the clientdestination- the consumed destination- Returns:
- map of client configurations
- Throws:
CredentialException- in case when responsible strategy fails
-