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
Fields - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLocalPathPrefixComposerSupport(boolean split, String localPrefix, boolean splitLocal, String remotePrefix, boolean splitRemote, boolean splitRemoteRepository, boolean splitRemoteRepositoryLast, String releasesPrefix, String snapshotsPrefix, Function<ArtifactRepository, String> idToPathSegmentFunction)  - 
Method Summary
Modifier and TypeMethodDescriptiongetPathPrefixForLocalArtifact(Artifact artifact) Gets the path prefix for a locally installed artifact.getPathPrefixForLocalMetadata(Metadata metadata) Gets the path prefix for locally installed metadata.getPathPrefixForRemoteArtifact(Artifact artifact, RemoteRepository repository) Gets the path prefix for an artifact cached from a remote repository.getPathPrefixForRemoteMetadata(Metadata metadata, RemoteRepository repository) Gets the path prefix for metadata cached from a remote repository.protected booleanisSnapshot(Metadata metadata)  
- 
Field Details
- 
split
 - 
localPrefix
 - 
splitLocal
 - 
remotePrefix
 - 
splitRemote
 - 
splitRemoteRepository
 - 
splitRemoteRepositoryLast
 - 
releasesPrefix
 - 
snapshotsPrefix
 - 
idToPathSegmentFunction
 
 - 
 - 
Constructor Details
- 
LocalPathPrefixComposerSupport
protected LocalPathPrefixComposerSupport(boolean split, String localPrefix, boolean splitLocal, String remotePrefix, boolean splitRemote, boolean splitRemoteRepository, boolean splitRemoteRepositoryLast, String releasesPrefix, String snapshotsPrefix, Function<ArtifactRepository, String> idToPathSegmentFunction)  
 - 
 - 
Method Details
- 
getPathPrefixForLocalArtifact
Description copied from interface:LocalPathPrefixComposerGets the path prefix for a locally installed artifact.- Specified by:
 getPathPrefixForLocalArtifactin interfaceLocalPathPrefixComposer- Parameters:
 artifact- The artifact for which to determine the prefix, must not benull.- Returns:
 - The prefix, may be 
null(note:nulls and empty strings are treated equally). 
 - 
getPathPrefixForRemoteArtifact
Description copied from interface:LocalPathPrefixComposerGets the path prefix for an artifact cached from a remote repository.- Specified by:
 getPathPrefixForRemoteArtifactin 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:nulls and empty strings are treated equally). 
 - 
getPathPrefixForLocalMetadata
Description copied from interface:LocalPathPrefixComposerGets the path prefix for locally installed metadata.- Specified by:
 getPathPrefixForLocalMetadatain interfaceLocalPathPrefixComposer- Parameters:
 metadata- The metadata for which to determine the prefix, must not benull.- Returns:
 - The prefix, may be 
null(note:nulls and empty strings are treated equally). 
 - 
getPathPrefixForRemoteMetadata
Description copied from interface:LocalPathPrefixComposerGets the path prefix for metadata cached from a remote repository.- Specified by:
 getPathPrefixForRemoteMetadatain 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:nulls and empty strings are treated equally). 
 - 
isSnapshot
 
 -