Package org.wildfly.prospero.galleon
Class CachedVersionResolver
- java.lang.Object
-
- org.wildfly.prospero.galleon.CachedVersionResolver
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.wildfly.channel.spi.MavenVersionsResolver
public class CachedVersionResolver extends Object implements org.wildfly.channel.spi.MavenVersionsResolver
Attempts to resolve artifact from local installation cache first. If that's not possible falls back ontofallbackMavenVersionsResolver. Installs locally resolved artifacts in LRM to allow galleon to start thin servers.
-
-
Constructor Summary
Constructors Constructor Description CachedVersionResolver(org.wildfly.channel.spi.MavenVersionsResolver fallbackResolver, ArtifactCache cache, org.eclipse.aether.RepositorySystem system, org.eclipse.aether.RepositorySystemSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getAllVersions(String groupId, String artifactId, String extension, String classifier)StringgetMetadataLatestVersion(String groupId, String artifactId)StringgetMetadataReleaseVersion(String groupId, String artifactId)FileresolveArtifact(String groupId, String artifactId, String extension, String classifier, String version)List<File>resolveArtifacts(List<org.wildfly.channel.ArtifactCoordinate> coordinates)List<URL>resolveChannelMetadata(List<? extends org.wildfly.channel.ChannelMetadataCoordinate> manifestCoords)
-
-
-
Constructor Detail
-
CachedVersionResolver
public CachedVersionResolver(org.wildfly.channel.spi.MavenVersionsResolver fallbackResolver, ArtifactCache cache, org.eclipse.aether.RepositorySystem system, org.eclipse.aether.RepositorySystemSession session)
-
-
Method Detail
-
getAllVersions
public Set<String> getAllVersions(String groupId, String artifactId, String extension, String classifier)
- Specified by:
getAllVersionsin interfaceorg.wildfly.channel.spi.MavenVersionsResolver
-
resolveArtifact
public File resolveArtifact(String groupId, String artifactId, String extension, String classifier, String version) throws org.wildfly.channel.UnresolvedMavenArtifactException
- Specified by:
resolveArtifactin interfaceorg.wildfly.channel.spi.MavenVersionsResolver- Throws:
org.wildfly.channel.UnresolvedMavenArtifactException
-
resolveArtifacts
public List<File> resolveArtifacts(List<org.wildfly.channel.ArtifactCoordinate> coordinates) throws org.wildfly.channel.UnresolvedMavenArtifactException
- Specified by:
resolveArtifactsin interfaceorg.wildfly.channel.spi.MavenVersionsResolver- Throws:
org.wildfly.channel.UnresolvedMavenArtifactException
-
resolveChannelMetadata
public List<URL> resolveChannelMetadata(List<? extends org.wildfly.channel.ChannelMetadataCoordinate> manifestCoords) throws org.wildfly.channel.UnresolvedMavenArtifactException
- Specified by:
resolveChannelMetadatain interfaceorg.wildfly.channel.spi.MavenVersionsResolver- Throws:
org.wildfly.channel.UnresolvedMavenArtifactException
-
getMetadataReleaseVersion
public String getMetadataReleaseVersion(String groupId, String artifactId)
- Specified by:
getMetadataReleaseVersionin interfaceorg.wildfly.channel.spi.MavenVersionsResolver
-
-