Interface ServiceMap

  • All Known Implementing Classes:
    DefaultServiceMap, ScopedServiceMap

    public interface ServiceMap
    Resolves service endpoints statically configured for a given scope.
    Author:
    Fabio Simeoni
    • Method Detail

      • endpoint

        String endpoint​(String service)
        Returns the endpoint of a given service.
        Parameters:
        service - the service
        Returns:
        the endpoint
        Throws:
        IllegalArgumentException - if the service has no endpoint in the map
        IllegalStateException - if the service endpoint cannot be returned
      • scope

        String scope()
        Returns the associated scope.
        Returns:
        the scope
        Throws:
        IllegalStateException - if the scope of the map cannot be returned
      • version

        String version()
        Returns the release version of the map.
        Returns:
        the version
        Throws:
        IllegalStateException - if the version of the map cannot be returned