Class LocalPathPrefixComposerFactorySupport.LocalPathPrefixComposerSupport

java.lang.Object
org.eclipse.aether.internal.impl.LocalPathPrefixComposerFactorySupport.LocalPathPrefixComposerSupport
All Implemented Interfaces:
LocalPathPrefixComposer
Direct Known Subclasses:
DefaultLocalPathPrefixComposerFactory.DefaultLocalPathPrefixComposer
Enclosing class:
LocalPathPrefixComposerFactorySupport

protected abstract static class LocalPathPrefixComposerFactorySupport.LocalPathPrefixComposerSupport extends Object implements LocalPathPrefixComposer
Support class for composers: it defines protected members for all the predefined configuration values and provides default implementation for methods. Implementors may change it's behaviour by overriding methods.
  • Field Details

    • split

      protected final boolean split
    • localPrefix

      protected final String localPrefix
    • splitLocal

      protected final boolean splitLocal
    • remotePrefix

      protected final String remotePrefix
    • splitRemote

      protected final boolean splitRemote
    • splitRemoteRepository

      protected final boolean splitRemoteRepository
    • splitRemoteRepositoryLast

      protected final boolean splitRemoteRepositoryLast
    • releasesPrefix

      protected final String releasesPrefix
    • snapshotsPrefix

      protected final String snapshotsPrefix
  • Constructor Details

    • LocalPathPrefixComposerSupport

      protected LocalPathPrefixComposerSupport(boolean split, String localPrefix, boolean splitLocal, String remotePrefix, boolean splitRemote, boolean splitRemoteRepository, boolean splitRemoteRepositoryLast, String releasesPrefix, String snapshotsPrefix)
  • Method Details

    • getPathPrefixForLocalArtifact

      public 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 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 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 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)