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.ProtocolResolverBuilder for aStubDownloader. Can't allow direct usage ofStubDownloadercause in order to register instances of this interface inSpringFactoriesLoaderone needs a default constructor whereas theStubDownloaderinstances need to be constructed from stub related options. Since2.0.0extendsProtocolResolver. Implementations have to tell Spring how to parse the repository root String into a resource.- Since:
- 1.1.0
- Author:
- Marcin Grzejszczak
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StubDownloaderbuild(StubRunnerOptions stubRunnerOptions)default org.springframework.core.io.Resourceresolve(String location, org.springframework.core.io.ResourceLoader resourceLoader)
-
-
-
Method Detail
-
build
StubDownloader build(StubRunnerOptions stubRunnerOptions)
- Parameters:
stubRunnerOptions- options of Stub Runner- Returns:
StubDownloaderinstance ofnullif 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:
resolvein interfaceorg.springframework.core.io.ProtocolResolver
-
-