- Type Parameters:
S -
- All Implemented Interfaces:
- gr.uoa.di.driver.util.ServiceLocator<S>
public class CompatibilityServiceLocator<S extends eu.dnetlib.api.DriverService>
extends Object
implements gr.uoa.di.driver.util.ServiceLocator<S>
This is an implementation of the service locator that uses a CNR service
locator. The CNR service locator returns endpoints to services, so the job of
this locator is to use the CNR locator to get service endpoint and use a
ServiceClientFactory to create a client for this endpoint.
It holds no cache of the located service. Any subsequent call to getService()
will produce a new client. It is up to the caller to cache and refresh the
result.
- Author:
- Antonis Lempesis