org.gcube.common.scope.impl
Class ScopedServiceMap
java.lang.Object
org.gcube.common.scope.impl.ScopedServiceMap
- All Implemented Interfaces:
- ServiceMap
public class ScopedServiceMap
- extends Object
- implements ServiceMap
A ServiceMap that forwards requests to ServiceMaps associated
with the scope of callers.
At construction time, it configures itself with all the service maps found
the classpath (excluding URLs available to primordial and extension
classloader). Recognises service maps as resources whose names match a
ServiceMapScanner.mapConfigPattern.
- Author:
- Fabio Simeoni
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScopedServiceMap
public ScopedServiceMap()
scope
public String scope()
- Description copied from interface:
ServiceMap
- Returns the associated scope.
- Specified by:
scope in interface ServiceMap
- Returns:
- the scope
endpoint
public List<String> endpoint(String service)
- Description copied from interface:
ServiceMap
- Returns the endpoints of a given service.
- Specified by:
endpoint in interface ServiceMap
- Parameters:
service - the service
- Returns:
- the endpoints, or
null if the service is unknown.
Copyright © 2012. All Rights Reserved.