- Type Parameters:
S -
- All Implemented Interfaces:
- ServiceLocator<S>
public class StaticServiceLocator<S extends eu.dnetlib.api.DriverService>
extends Object
implements ServiceLocator<S>
An implementation of the ServiceLocator that returns a predefined instance
of a service.
Can be used for debug purposes, FallBackLocator or when 2 services A and B
are deployed in the same application (in this case, service A will get an
instance of a StaticServiceLocator in order to avoid calls to the IS and
traversing the whole SOAP stack in order to communicate with B).
- Author:
- Antonis Lempesis