Interface ApiRegistryClientService

All Known Implementing Classes:
DefaultApiRegistryClientService

public interface ApiRegistryClientService
Service layer implementation for client operations
  • Method Details

    • lookupClient

      <T> T lookupClient(Class<T> clientType) throws CredentialException
      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 client
      destination - the consumed destination
      Returns:
      map of client configurations
      Throws:
      CredentialException - in case when responsible strategy fails