Package org.eclipse.aether.internal.impl
Class LocalPathPrefixComposerFactorySupport.LocalPathPrefixComposerSupport
java.lang.Object
org.eclipse.aether.internal.impl.LocalPathPrefixComposerFactorySupport.LocalPathPrefixComposerSupport
- All Implemented Interfaces:
LocalPathPrefixComposer
- 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 Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
LocalPathPrefixComposerSupport
(boolean split, String localPrefix, boolean splitLocal, String remotePrefix, boolean splitRemote, boolean splitRemoteRepository, boolean splitRemoteRepositoryLast, String releasesPrefix, String snapshotsPrefix) -
Method Summary
Modifier and TypeMethodDescriptiongetPathPrefixForLocalArtifact
(org.eclipse.aether.artifact.Artifact artifact) Gets the path prefix for a locally installed artifact.getPathPrefixForLocalMetadata
(org.eclipse.aether.metadata.Metadata metadata) Gets the path prefix for locally installed metadata.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.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)
-
Field Details
-
split
-
localPrefix
-
splitLocal
-
remotePrefix
-
splitRemote
-
splitRemoteRepository
-
splitRemoteRepositoryLast
-
releasesPrefix
-
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
Description copied from interface:LocalPathPrefixComposer
Gets the path prefix for a locally installed artifact.- Specified by:
getPathPrefixForLocalArtifact
in interfaceLocalPathPrefixComposer
- Parameters:
artifact
- The artifact for which to determine the prefix, must not benull
.- Returns:
- The prefix, may be
null
(note:null
s and empty strings are treated equally).
-
getPathPrefixForRemoteArtifact
public 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 interfaceLocalPathPrefixComposer
- Parameters:
artifact
- The artifact for which to determine the prefix, must not benull
.repository
- The remote repository, nevernull
.- Returns:
- The prefix, may be
null
(note:null
s and empty strings are treated equally).
-
getPathPrefixForLocalMetadata
Description copied from interface:LocalPathPrefixComposer
Gets the path prefix for locally installed metadata.- Specified by:
getPathPrefixForLocalMetadata
in interfaceLocalPathPrefixComposer
- Parameters:
metadata
- The metadata for which to determine the prefix, must not benull
.- Returns:
- The prefix, may be
null
(note:null
s and empty strings are treated equally).
-
getPathPrefixForRemoteMetadata
public 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 interfaceLocalPathPrefixComposer
- Parameters:
metadata
- The metadata for which to determine the prefix, must not benull
.repository
- The remote repository, nevernull
.- Returns:
- The prefix, may be
null
(note:null
s and empty strings are treated equally).
-
isSnapshot
-