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 SummaryFields
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedLocalPathPrefixComposerSupport(boolean split, String localPrefix, boolean splitLocal, String remotePrefix, boolean splitRemote, boolean splitRemoteRepository, boolean splitRemoteRepositoryLast, String releasesPrefix, String snapshotsPrefix, Function<org.eclipse.aether.repository.ArtifactRepository, String> idToPathSegmentFunction) 
- 
Method SummaryModifier 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 booleanisSnapshot(org.eclipse.aether.metadata.Metadata metadata) 
- 
Field Details- 
split
- 
localPrefix
- 
splitLocal
- 
remotePrefix
- 
splitRemote
- 
splitRemoteRepository
- 
splitRemoteRepositoryLast
- 
releasesPrefix
- 
snapshotsPrefix
- 
idToPathSegmentFunctionprotected final Function<org.eclipse.aether.repository.ArtifactRepository,String> idToPathSegmentFunction
 
- 
- 
Constructor Details- 
LocalPathPrefixComposerSupportprotected LocalPathPrefixComposerSupport(boolean split, String localPrefix, boolean splitLocal, String remotePrefix, boolean splitRemote, boolean splitRemoteRepository, boolean splitRemoteRepositoryLast, String releasesPrefix, String snapshotsPrefix, Function<org.eclipse.aether.repository.ArtifactRepository, String> idToPathSegmentFunction) 
 
- 
- 
Method Details- 
getPathPrefixForLocalArtifactDescription copied from interface:LocalPathPrefixComposerGets the path prefix for a locally installed artifact.- Specified by:
- getPathPrefixForLocalArtifactin 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).
 
- 
getPathPrefixForRemoteArtifactpublic String getPathPrefixForRemoteArtifact(org.eclipse.aether.artifact.Artifact artifact, org.eclipse.aether.repository.RemoteRepository repository) Description copied from interface:LocalPathPrefixComposerGets the path prefix for an artifact cached from a remote repository.- Specified by:
- getPathPrefixForRemoteArtifactin 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).
 
- 
getPathPrefixForLocalMetadataDescription copied from interface:LocalPathPrefixComposerGets the path prefix for locally installed metadata.- Specified by:
- getPathPrefixForLocalMetadatain 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).
 
- 
getPathPrefixForRemoteMetadatapublic String getPathPrefixForRemoteMetadata(org.eclipse.aether.metadata.Metadata metadata, org.eclipse.aether.repository.RemoteRepository repository) Description copied from interface:LocalPathPrefixComposerGets the path prefix for metadata cached from a remote repository.- Specified by:
- getPathPrefixForRemoteMetadatain 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
 
-