Interface StubDownloader

All Known Implementing Classes:
AetherStubDownloader

public interface StubDownloader
Contract for providing a tuple containing configuration of a downloaded and unpacked stub, together with the file location of that extracted artifact. Note: Actually the artifact doesn't have to be a JAR. method name contains that suffix for historical reasons.
Since:
1.0.0
Author:
Marcin Grzejszczak
  • Method Details

    • downloadAndUnpackStubJar

      Map.Entry<StubConfiguration,File> downloadAndUnpackStubJar(StubConfiguration stubConfiguration)
      Note: Actually the artifact doesn't have to be a JAR. method name contains that suffix or historical reasons.
      Parameters:
      stubConfiguration - configuration for which contracts and stubs should be resolved
      Returns:
      a mapping of updated StubConfiguration (it will contain the resolved version) and the location of the downloaded stubs. If there was no artifact this method will return null.