Class ClasspathStubProvider
java.lang.Object
org.springframework.cloud.contract.stubrunner.ClasspathStubProvider
- All Implemented Interfaces:
StubDownloaderBuilder
,org.springframework.core.io.ProtocolResolver
Stub downloader that picks stubs and contracts from the provided resource. If
StubRunnerProperties.stubsMode
is set to
StubRunnerProperties.StubsMode.CLASSPATH
then classpath is searched according to what has been passed in
StubRunnerProperties.ids
.
The pattern to search for stubs looks like this
META-INF/group.id/artifactid/ ** /*.*
contracts/group.id/artifactid/ ** /*.*
mappings/group.id/artifactid/ ** /*.*
META-INF/com.example/fooservice/1.0.0/ **
contracts/com.example/artifactid/ ** /*.*
mappings/com.example/artifactid/ ** /*.*
- Since:
- 1.1.1
- Author:
- Marcin Grzejszczak
-
Constructor Details
-
ClasspathStubProvider
public ClasspathStubProvider()
-
-
Method Details
-
build
- Specified by:
build
in interfaceStubDownloaderBuilder
- Parameters:
stubRunnerOptions
- options of Stub Runner- Returns:
StubDownloader
instance ofnull
if current parameters don't allow building the instance
-