Class LocalPathPrefixComposerFactorySupport.LocalPathPrefixComposerSupport

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected LocalPathPrefixComposerSupport​(boolean split, java.lang.String localPrefix, boolean splitLocal, java.lang.String remotePrefix, boolean splitRemote, boolean splitRemoteRepository, boolean splitRemoteRepositoryLast, java.lang.String releasesPrefix, java.lang.String snapshotsPrefix)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPathPrefixForLocalArtifact​(org.eclipse.aether.artifact.Artifact artifact)
      Gets the path prefix for a locally installed artifact.
      java.lang.String getPathPrefixForLocalMetadata​(org.eclipse.aether.metadata.Metadata metadata)
      Gets the path prefix for locally installed metadata.
      java.lang.String getPathPrefixForRemoteArtifact​(org.eclipse.aether.artifact.Artifact artifact, org.eclipse.aether.repository.RemoteRepository repository)
      Gets the path prefix for an artifact cached from a remote repository.
      java.lang.String getPathPrefixForRemoteMetadata​(org.eclipse.aether.metadata.Metadata metadata, org.eclipse.aether.repository.RemoteRepository repository)
      Gets the path prefix for metadata cached from a remote repository.
      protected boolean isSnapshot​(org.eclipse.aether.metadata.Metadata metadata)  
      • Methods inherited from class java.lang.Object

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

      • LocalPathPrefixComposerSupport

        protected LocalPathPrefixComposerSupport​(boolean split,
                                                 java.lang.String localPrefix,
                                                 boolean splitLocal,
                                                 java.lang.String remotePrefix,
                                                 boolean splitRemote,
                                                 boolean splitRemoteRepository,
                                                 boolean splitRemoteRepositoryLast,
                                                 java.lang.String releasesPrefix,
                                                 java.lang.String snapshotsPrefix)
    • Method Detail

      • getPathPrefixForRemoteArtifact

        public java.lang.String getPathPrefixForRemoteArtifact​(org.eclipse.aether.artifact.Artifact artifact,
                                                               org.eclipse.aether.repository.RemoteRepository repository)
        Description copied from interface: LocalPathPrefixComposer
        Gets the path prefix for an artifact cached from a remote repository.
        Specified by:
        getPathPrefixForRemoteArtifact in interface LocalPathPrefixComposer
        Parameters:
        artifact - The artifact for which to determine the prefix, must not be null.
        repository - The remote repository, never null.
        Returns:
        The prefix, may be null (note: nulls and empty strings are treated equally).
      • getPathPrefixForRemoteMetadata

        public java.lang.String getPathPrefixForRemoteMetadata​(org.eclipse.aether.metadata.Metadata metadata,
                                                               org.eclipse.aether.repository.RemoteRepository repository)
        Description copied from interface: LocalPathPrefixComposer
        Gets the path prefix for metadata cached from a remote repository.
        Specified by:
        getPathPrefixForRemoteMetadata in interface LocalPathPrefixComposer
        Parameters:
        metadata - The metadata for which to determine the prefix, must not be null.
        repository - The remote repository, never null.
        Returns:
        The prefix, may be null (note: nulls and empty strings are treated equally).
      • isSnapshot

        protected boolean isSnapshot​(org.eclipse.aether.metadata.Metadata metadata)