Class FilteringVersionResolver
java.lang.Object
org.wildfly.prospero.galleon.artifactfiltering.FilteringVersionResolver
- All Implemented Interfaces:
Closeable,AutoCloseable,org.wildfly.channel.spi.MavenVersionsResolver
public class FilteringVersionResolver
extends Object
implements org.wildfly.channel.spi.MavenVersionsResolver
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.wildfly.channel.spi.MavenVersionsResolver
org.wildfly.channel.spi.MavenVersionsResolver.Factory -
Constructor Summary
ConstructorsConstructorDescriptionFilteringVersionResolver(Predicate<ArtifactVersion> predicate, org.wildfly.channel.spi.MavenVersionsResolver fallbackResolver) -
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
-
FilteringVersionResolver
public FilteringVersionResolver(Predicate<ArtifactVersion> predicate, org.wildfly.channel.spi.MavenVersionsResolver fallbackResolver)
-
-
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.ArtifactTransferException - Specified by:
resolveArtifactin interfaceorg.wildfly.channel.spi.MavenVersionsResolver- Throws:
org.wildfly.channel.ArtifactTransferException
-
resolveArtifacts
public List<File> resolveArtifacts(List<org.wildfly.channel.ArtifactCoordinate> coordinates) throws org.wildfly.channel.ArtifactTransferException - Specified by:
resolveArtifactsin interfaceorg.wildfly.channel.spi.MavenVersionsResolver- Throws:
org.wildfly.channel.ArtifactTransferException
-
resolveChannelMetadata
public List<URL> resolveChannelMetadata(List<? extends org.wildfly.channel.ChannelMetadataCoordinate> manifestCoords) throws org.wildfly.channel.ArtifactTransferException - Specified by:
resolveChannelMetadatain interfaceorg.wildfly.channel.spi.MavenVersionsResolver- Throws:
org.wildfly.channel.ArtifactTransferException
-
getMetadataReleaseVersion
- Specified by:
getMetadataReleaseVersionin interfaceorg.wildfly.channel.spi.MavenVersionsResolver
-
getMetadataLatestVersion
- Specified by:
getMetadataLatestVersionin interfaceorg.wildfly.channel.spi.MavenVersionsResolver
-