Class JarRepository

All Implemented Interfaces:
Repository

public class JarRepository extends AbstractRepository
A JarRepository is a Repository contains an archive file from classpath.
See Also:
  • Method Details

    • isRemote

      public boolean isRemote()
      Returns whether the repository is remote repository.
      Returns:
      whether the repository is remote repository
    • locate

      public Metadata locate(MRL mrl)
      Returns the metadata at a mrl.
      Parameters:
      mrl - the mrl of the metadata to retrieve
      Returns:
      the metadata
    • resolve

      public Artifact resolve(MRL mrl, Map<String,String> filter)
      Returns the artifact matching a mrl, version, and property filter.
      Parameters:
      mrl - the mrl to match the artifact against
      filter - the property filter
      Returns:
      the matched artifact
    • getResources

      public List<MRL> getResources()
      Returns a list of MRLs in the repository.

      An empty list will be returned if underlying Repository implementation does not support this feature.

      Returns:
      a list of MRLs in the repository
    • download

      protected void download(Path tmp, URI baseUri, Artifact.Item item, ai.djl.util.Progress progress) throws IOException
      Overrides:
      download in class AbstractRepository
      Throws:
      IOException