Package 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
Fields -
Method Summary
-
Field Details
-
instance
SharedServiceMap.
-
-
Method Details
-
endpoint
Returns the endpoint of a given service.- Parameters:
service- the service- Returns:
- the endpoint
- Throws:
IllegalArgumentException- if the service has no endpoint in the mapIllegalStateException- 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
-