Class LocalPathPrefixComposerFactorySupport.LocalPathPrefixComposerSupport

    • Field Detail

      • split

        protected final boolean split
      • localPrefix

        protected final java.lang.String localPrefix
      • splitLocal

        protected final boolean splitLocal
      • remotePrefix

        protected final java.lang.String remotePrefix
      • splitRemote

        protected final boolean splitRemote
      • splitRemoteRepository

        protected final boolean splitRemoteRepository
      • splitRemoteRepositoryLast

        protected final boolean splitRemoteRepositoryLast
      • releasesPrefix

        protected final java.lang.String releasesPrefix
      • snapshotsPrefix

        protected final java.lang.String snapshotsPrefix
    • 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

      • getPathPrefixForLocalArtifact

        public java.lang.String getPathPrefixForLocalArtifact​(Artifact artifact)
        Description copied from interface: LocalPathPrefixComposer
        Gets the path prefix for a locally installed artifact.
        Specified by:
        getPathPrefixForLocalArtifact in interface LocalPathPrefixComposer
        Parameters:
        artifact - The artifact for which to determine the prefix, must not be null.
        Returns:
        The prefix, may be null (note: nulls and empty strings are treated equally).
      • getPathPrefixForRemoteArtifact

        public java.lang.String getPathPrefixForRemoteArtifact​(Artifact artifact,
                                                               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).
      • getPathPrefixForLocalMetadata

        public java.lang.String getPathPrefixForLocalMetadata​(Metadata metadata)
        Description copied from interface: LocalPathPrefixComposer
        Gets the path prefix for locally installed metadata.
        Specified by:
        getPathPrefixForLocalMetadata in interface LocalPathPrefixComposer
        Parameters:
        metadata - The metadata for which to determine the prefix, must not be null.
        Returns:
        The prefix, may be null (note: nulls and empty strings are treated equally).
      • getPathPrefixForRemoteMetadata

        public java.lang.String getPathPrefixForRemoteMetadata​(Metadata metadata,
                                                               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​(Metadata metadata)