Package org.wildfly.prospero.metadata
Class ManifestVersionResolver
- java.lang.Object
-
- org.wildfly.prospero.metadata.ManifestVersionResolver
-
public class ManifestVersionResolver extends Object
Identifies manifests used to provision installation. In case of Maven-based manifests, the identifier is the full GAV; for URL-based manifests it's the URL and a hash of the manifest content; for open manifests it's list of repositories + strategy.
-
-
Constructor Summary
Constructors Constructor Description ManifestVersionResolver(Path localMavenCache, org.eclipse.aether.RepositorySystem system)creates the resolver using an offline repository session
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManifestVersionRecordgetCurrentVersions(List<org.wildfly.channel.Channel> channels)Resolves the latest versions of manifests used in channels
-
-
-
Constructor Detail
-
ManifestVersionResolver
public ManifestVersionResolver(Path localMavenCache, org.eclipse.aether.RepositorySystem system)
creates the resolver using an offline repository session- Parameters:
localMavenCache- - path to the local cache used to resolve metadata during provisioningsystem-
-
-
Method Detail
-
getCurrentVersions
public ManifestVersionRecord getCurrentVersions(List<org.wildfly.channel.Channel> channels) throws IOException
Resolves the latest versions of manifests used in channels- Parameters:
channels- - list of provisioned channels- Returns:
ManifestVersionRecordof latest available versions of manifests- Throws:
IOException- - if unable to resolve any of the manifests
-
-