Interface LocalPathPrefixComposer

All Known Implementing Classes:
DefaultLocalPathPrefixComposerFactory.DefaultLocalPathPrefixComposer, LocalPathPrefixComposerFactorySupport.LocalPathPrefixComposerSupport

public interface LocalPathPrefixComposer
Composes path prefixes for EnhancedLocalRepositoryManager.
Since:
1.8.1
  • Method Details

    • getPathPrefixForLocalArtifact

      String getPathPrefixForLocalArtifact(Artifact artifact)
      Gets the path prefix for a locally installed artifact.
      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

      String getPathPrefixForRemoteArtifact(Artifact artifact, RemoteRepository repository)
      Gets the path prefix for an artifact cached from a remote repository.
      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

      String getPathPrefixForLocalMetadata(Metadata metadata)
      Gets the path prefix for locally installed metadata.
      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

      String getPathPrefixForRemoteMetadata(Metadata metadata, RemoteRepository repository)
      Gets the path prefix for metadata cached from a remote repository.
      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).