Class ArtifactManager

    • Method Detail

      • getArtifactManager

        public static ArtifactManager getArtifactManager​(ArtifactManagerConfig config)
                                                  throws IOException
        Get an artifact manager based on the configuration
        Parameters:
        config - The configuration
        Returns:
        The artifact manager
        Throws:
        IOException - If the manager can't be initialized
      • shutdown

        public void shutdown()
        Shutdown the artifact manager.
      • toFeatureProvider

        public FeatureProvider toFeatureProvider()
        Return a feature provider based on this artifact manager
        Returns:
        A feature provider
        Since:
        1.1.0
      • getArtifactHandler

        public ArtifactHandler getArtifactHandler​(String url)
                                           throws IOException
        Get the full artifact url and file for an artifact.
        Parameters:
        url - Artifact url or relative path.
        Returns:
        Absolute url and file in the form of a handler.
        Throws:
        IOException - If something goes wrong or the artifact can't be found.
      • getLatestSnapshot

        public static String getLatestSnapshot​(String mavenMetadata)