Interface ServiceMap

All Known Implementing Classes:
DefaultServiceMap, ScopedServiceMap

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

    Fields
    Modifier and Type
    Field
    Description
    static final ServiceMap
    Shared ServiceMap.
  • Method Summary

    Modifier and Type
    Method
    Description
    endpoint(String service)
    Returns the endpoint of a given service.
    Returns the associated scope.
    Returns the release version of the map.
  • Field Details

  • Method Details

    • 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