Class ChannelUpdateFinder
java.lang.Object
org.wildfly.prospero.updates.ChannelUpdateFinder
A Maven resolver to find manifest versions available in a given channel.
-
Constructor Summary
ConstructorsConstructorDescriptionChannelUpdateFinder(org.eclipse.aether.RepositorySystem system, org.eclipse.aether.RepositorySystemSession session) -
Method Summary
Modifier and TypeMethodDescriptionfindAvailableChannelVersions(org.wildfly.channel.Channel channel) Lists all manifests versions that can be found for the channel.findNewerChannelVersions(org.wildfly.channel.Channel channel, String channelVersion) Lists manifests versions that can be found for the channel and are newer thenchannelVersion.
-
Constructor Details
-
ChannelUpdateFinder
public ChannelUpdateFinder(org.eclipse.aether.RepositorySystem system, org.eclipse.aether.RepositorySystemSession session)
-
-
Method Details
-
findAvailableChannelVersions
public Collection<ChannelVersion> findAvailableChannelVersions(org.wildfly.channel.Channel channel) throws MetadataException Lists all manifests versions that can be found for the channel. NOTE: only Maven channels can be passed to this method. Any other channel will result in an exception to be thrown.- Parameters:
channel- - the channel to find the versions for- Returns:
- - list of all the possible channel manifest versions
- Throws:
MetadataException- - if unable to retrieve or parse the manifest information
-
findNewerChannelVersions
public Collection<ChannelVersion> findNewerChannelVersions(org.wildfly.channel.Channel channel, String channelVersion) throws MetadataException Lists manifests versions that can be found for the channel and are newer thenchannelVersion. NOTE: only Maven channels can be passed to this method. Any other channel will result in an exception to be thrown.- Parameters:
channel- - the channel to find the versions for- Returns:
- - list of all the channel manifest versions newer then requested
channelVersion - Throws:
MetadataException- - if unable to retrieve or parse the manifest information
-