Interface ArtifactProvider


  • @ConsumerType
    public interface ArtifactProvider
    The artifact provider is an extension point for providing artifacts from different sources, like for example s3.
    • Method Detail

      • getProtocol

        String getProtocol()
        The protocol name of the provider, e.g. "s3"
        Returns:
        The protocol name.
      • shutdown

        void shutdown()
        Shutdown the provider.
      • getArtifact

        URL getArtifact​(String url,
                        String relativeCachePath)
        Get a local file for the artifact URL.
        Parameters:
        url - Artifact url
        relativeCachePath - A relative path that can be used as a cache path by the provider. The path does not start with a slash.
        Returns:
        A local url if the artifact exists or null