public class ScopedServiceMap extends Object implements ServiceMap
ServiceMap that forwards requests to ServiceMaps associated
with the current scope.
At construction time, it configures itself with all the service maps found
in the classpath (excluding URLs available to primordial and extension
classloader). Recognises service maps as resources whose names match a
ServiceMapScanner.mapConfigPattern.
instance| Constructor and Description |
|---|
ScopedServiceMap() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public String scope()
ServiceMapscope in interface ServiceMappublic String version()
ServiceMapversion in interface ServiceMappublic String endpoint(String service) throws IllegalArgumentException, IllegalStateException
ServiceMapendpoint in interface ServiceMapservice - the serviceIllegalArgumentException - if the service has no endpoint in the mapIllegalStateException - if the service endpoint cannot be returnedCopyright © 2020. All Rights Reserved.