Class ChannelUpdateFinder

java.lang.Object
org.wildfly.prospero.updates.ChannelUpdateFinder

public class ChannelUpdateFinder extends Object
A Maven resolver to find manifest versions available in a given channel.
  • 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 then channelVersion. 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