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 TypeMethodDescriptionbuild(StubRunnerOptions stubRunnerOptions) default org.springframework.core.io.Resource
-
Method Details
-
build
- 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
-