Interface ApiRegistryClientService

  • All Known Implementing Classes:
    DefaultApiRegistryClientService

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.String> buildClientConfig​(java.lang.Class clientType, ConsumedDestinationModel destination)
      Method to build client configuration as map for the given client client proxy type
      <T> T lookupClient​(java.lang.Class<T> clientType)
      Generates a client proxy for a given client type
    • Method Detail

      • lookupClient

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

        java.util.Map<java.lang.String,​java.lang.String> buildClientConfig​(java.lang.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