Interface ServiceLocator
Deprecated.
Binary-compatibility shim for Maven 3 code that still links against the Resolver 1.x service locator API.
Resolver 2.x does not provide a service locator: this interface is never implemented or looked up by Resolver
itself, and it is not available on the class path of applications that do not use this module.
- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescription<T> TgetService(Class<T> type) Deprecated.Gets an instance of the specified service.<T> List<T> getServices(Class<T> type) Deprecated.Gets all available instances of the specified service.
-
Method Details
-
getService
Deprecated.Gets an instance of the specified service.- Type Parameters:
T- The service type.- Parameters:
type- The interface describing the service, must not benull.- Returns:
- The service instance or
nullif the service could not be located/initialized.
-
getServices
Deprecated.Gets all available instances of the specified service.- Type Parameters:
T- The service type.- Parameters:
type- The interface describing the service, must not benull.- Returns:
- The (read-only) list of available service instances, never
null.
-
RepositorySystemSupplierto obtain aRepositorySystem.