Package org.eclipse.aether.spi.locator
Interface ServiceLocator
-
@Deprecated public interface ServiceLocator
Deprecated.This class here is merely to provide backward compatibility to Maven3. Pretend is not here.- Since:
- 2.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description <T> TgetService(java.lang.Class<T> type)Deprecated.Gets an instance of the specified service.<T> java.util.List<T>getServices(java.lang.Class<T> type)Deprecated.Gets all available instances of the specified service.
-
-
-
Method Detail
-
getService
<T> T getService(java.lang.Class<T> type)
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
<T> java.util.List<T> getServices(java.lang.Class<T> type)
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.
-
-