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 onto
fallback MavenVersionsResolver.
Installs locally resolved artifacts in LRM to allow galleon to start thin servers.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.wildfly.channel.spi.MavenVersionsResolver
org.wildfly.channel.spi.MavenVersionsResolver.Factory -
Constructor Summary
ConstructorsConstructorDescriptionCachedVersionResolver(org.wildfly.channel.spi.MavenVersionsResolver fallbackResolver, ArtifactCache cache, org.eclipse.aether.RepositorySystem system, org.eclipse.aether.RepositorySystemSession session, Function<org.wildfly.channel.ArtifactCoordinate, String> manifestVersionProvider) -
Method Summary
Modifier and TypeMethodDescriptiongetAllVersions(String groupId, String artifactId, String extension, String classifier) getMetadataLatestVersion(String groupId, String artifactId) getMetadataReleaseVersion(String groupId, String artifactId) resolveArtifact(String groupId, String artifactId, String extension, String classifier, String version) resolveArtifacts(List<org.wildfly.channel.ArtifactCoordinate> coordinates) resolveChannelMetadata(List<? extends org.wildfly.channel.ChannelMetadataCoordinate> manifestCoords) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.channel.spi.MavenVersionsResolver
close
-
Constructor Details
-
CachedVersionResolver
public CachedVersionResolver(org.wildfly.channel.spi.MavenVersionsResolver fallbackResolver, ArtifactCache cache, org.eclipse.aether.RepositorySystem system, org.eclipse.aether.RepositorySystemSession session, Function<org.wildfly.channel.ArtifactCoordinate, String> manifestVersionProvider)
-
-
Method Details
-
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
- Specified by:
getMetadataReleaseVersionin interfaceorg.wildfly.channel.spi.MavenVersionsResolver
-
getMetadataLatestVersion
- Specified by:
getMetadataLatestVersionin interfaceorg.wildfly.channel.spi.MavenVersionsResolver
-