public class RemoteRepoLoaderImpl extends java.lang.Object implements RemoteRepoLoader
Repositorys from RepositorySources.| Constructor and Description |
|---|
RemoteRepoLoaderImpl(java.util.Collection<RepositorySourceProvider> sources,
org.w3c.dom.ls.LSResourceResolver resourceResolver,
FallbackRemoteRepoLoader fallback)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,RemotePackage> |
fetchPackages(ProgressIndicator progress,
Downloader downloader,
SettingsController settings)
Fetches the remote packages.
|
public RemoteRepoLoaderImpl(@NonNull
java.util.Collection<RepositorySourceProvider> sources,
@Nullable
org.w3c.dom.ls.LSResourceResolver resourceResolver,
@Nullable
FallbackRemoteRepoLoader fallback)
sources - The RepositorySourceProviders to get the RepositorySources to load from.resourceResolver - The resolver to use to find imported XSDs, if necessary for the
SchemaModules used by the RepositorySources.fallback - The FallbackRemoteRepoLoader to use if we can't parse an XML
file.@NonNull public java.util.Map<java.lang.String,RemotePackage> fetchPackages(@NonNull ProgressIndicator progress, @NonNull Downloader downloader, @Nullable SettingsController settings)
RemoteRepoLoaderfetchPackages in interface RemoteRepoLoaderprogress - ProgressIndicator for logging and showing progress (TODO).downloader - The Downloader to use for RepositorySourceProviders to use
if needed.settings - The SettingsController for RepositorySourceProviders to use
if needed.RemotePackages. The remote package will be the most
recent version of the package in a channel at least as stable as the one specified by SettingsController.getChannel().