Class DefaultDownloader

  • All Implemented Interfaces:
    Downloader

    @Named
    @Singleton
    public class DefaultDownloader
    extends java.lang.Object
    implements Downloader
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.eclipse.aether.RepositorySystem repositorySystem  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.File download​(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.util.List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories, org.eclipse.aether.RepositorySystemSession repositorySystemSession)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • repositorySystem

        @Inject
        private org.eclipse.aether.RepositorySystem repositorySystem
    • Constructor Detail

      • DefaultDownloader

        public DefaultDownloader()
    • Method Detail

      • download

        public java.io.File download​(java.lang.String groupId,
                                     java.lang.String artifactId,
                                     java.lang.String version,
                                     java.util.List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories,
                                     org.eclipse.aether.RepositorySystemSession repositorySystemSession)
                              throws DownloadException
        Specified by:
        download in interface Downloader
        Throws:
        DownloadException