Interface StubDownloaderBuilder

All Superinterfaces:
org.springframework.core.io.ProtocolResolver
All Known Implementing Classes:
AetherStubDownloaderBuilder, ClasspathStubProvider, FileStubDownloader, ScmStubDownloaderBuilder

public interface StubDownloaderBuilder extends org.springframework.core.io.ProtocolResolver
Builder for a StubDownloader. Can't allow direct usage of StubDownloader cause in order to register instances of this interface in SpringFactoriesLoader one needs a default constructor whereas the StubDownloader instances need to be constructed from stub related options. Since 2.0.0 extends ProtocolResolver. Implementations have to tell Spring how to parse the repository root String into a resource.
Since:
1.1.0
Author:
Marcin Grzejszczak
  • Method Summary

    Modifier and Type
    Method
    Description
    build(StubRunnerOptions stubRunnerOptions)
     
    default org.springframework.core.io.Resource
    resolve(String location, org.springframework.core.io.ResourceLoader resourceLoader)
     
  • Method Details

    • build

      StubDownloader build(StubRunnerOptions stubRunnerOptions)
      Parameters:
      stubRunnerOptions - options of Stub Runner
      Returns:
      StubDownloader instance of null if current parameters don't allow building the instance
    • resolve

      default org.springframework.core.io.Resource resolve(String location, org.springframework.core.io.ResourceLoader resourceLoader)
      Specified by:
      resolve in interface org.springframework.core.io.ProtocolResolver