Interface DependencyResolver
- All Known Implementing Classes:
AbstractDependencyResolver
public interface DependencyResolver
Resolve the main meta information of a package dependency.
-
Method Summary
Modifier and TypeMethodDescription@NotNull Collection<PackageInfo>resolvePackageInfo(@NotNull Dependency[] dependencies, @NotNull Map<PackageId, URI> dependencyLocations) Resolves multiple package dependencies taking into account a map from package id to URI (given via package propertiesdependencies-locations).
-
Method Details
-
resolvePackageInfo
@NotNull @NotNull Collection<PackageInfo> resolvePackageInfo(@NotNull @NotNull Dependency[] dependencies, @NotNull @NotNull Map<PackageId, URI> dependencyLocations) throws IOExceptionResolves multiple package dependencies taking into account a map from package id to URI (given via package propertiesdependencies-locations).- Parameters:
dependencies- the dependencies to resolvedependencyLocations- a map of package ids to URIs- Returns:
- the list of
PackageInfofor all resolved dependencies (as this is only a best effort implementation the list being returned might be smaller than the array size ofdependencies). - Throws:
IOException- in case some error happened during resolving
-