Class ClasspathStubProvider

  • All Implemented Interfaces:
    StubDownloaderBuilder, org.springframework.core.io.ProtocolResolver

    public class ClasspathStubProvider
    extends Object
    implements StubDownloaderBuilder
    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/ ** /*.*
    examples
    • META-INF/com.example/fooservice/1.0.0/ **
    • contracts/com.example/artifactid/ ** /*.*
    • mappings/com.example/artifactid/ ** /*.*
    Since:
    1.1.1
    Author:
    Marcin Grzejszczak