org.gcube.common.scope.api
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
static ServiceMap instance
          Shared ServiceMap.
 
Method Summary
 String endpoint(String service)
          Returns the endpoint of a given service.
 String scope()
          Returns the associated scope.
 String version()
          Returns the release version of the map.
 

Field Detail

instance

static final ServiceMap instance
Shared ServiceMap.

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


Copyright © 2013. All Rights Reserved.