Class SimpleRepository

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Condition condition  
      private java.nio.file.Path root  
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleRepository​(java.lang.String namespace, java.nio.file.Path root, org.w3c.dom.Element filter)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract java.nio.file.Path getArtifactPath​(java.lang.String pattern, java.lang.String groupId, java.lang.String artifactId, java.lang.String extension, java.lang.String classifier, java.lang.String version)  
      java.nio.file.Path getPrimaryArtifactPath​(Artifact artifact, ArtifactContext context, java.lang.String pattern)
      Obtain the preferred path to given artifact in this repository.
      java.util.Set<java.nio.file.Path> getRootPaths()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • root

        private final java.nio.file.Path root
      • condition

        private final Condition condition
    • Constructor Detail

      • SimpleRepository

        public SimpleRepository​(java.lang.String namespace,
                                java.nio.file.Path root,
                                org.w3c.dom.Element filter)
    • Method Detail

      • getArtifactPath

        protected abstract java.nio.file.Path getArtifactPath​(java.lang.String pattern,
                                                              java.lang.String groupId,
                                                              java.lang.String artifactId,
                                                              java.lang.String extension,
                                                              java.lang.String classifier,
                                                              java.lang.String version)
      • getPrimaryArtifactPath

        public java.nio.file.Path getPrimaryArtifactPath​(Artifact artifact,
                                                         ArtifactContext context,
                                                         java.lang.String pattern)
        Description copied from interface: Repository
        Obtain the preferred path to given artifact in this repository.

        Returned path is relative to the repository base.

        context - TODO
        pattern - TODO
        Returns:
        preferred artifact path
      • getRootPaths

        public java.util.Set<java.nio.file.Path> getRootPaths()