Package org.eclipse.aether.internal.impl
Class DefaultLocalPathComposer
java.lang.Object
org.eclipse.aether.internal.impl.DefaultLocalPathComposer
- All Implemented Interfaces:
- LocalPathComposer
@Singleton
@Named
public final class DefaultLocalPathComposer
extends Object
implements LocalPathComposer
Default implementation of 
LocalPathComposer.- Since:
- 1.8.1
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetPathForArtifact(org.eclipse.aether.artifact.Artifact artifact, boolean local) Gets the relative path for a locally installed (local=true) or remotely cached (local=false) artifact.getPathForMetadata(org.eclipse.aether.metadata.Metadata metadata, String repositoryKey) Gets the relative path for locally installed (repositoryKey=local) or remotely cached metadata.
- 
Constructor Details- 
DefaultLocalPathComposerpublic DefaultLocalPathComposer()
 
- 
- 
Method Details- 
getPathForArtifactDescription copied from interface:LocalPathComposerGets the relative path for a locally installed (local=true) or remotely cached (local=false) artifact.- Specified by:
- getPathForArtifactin interface- LocalPathComposer
- Parameters:
- artifact- The artifact for which to determine the path, must not be- null.
- local-- trueif artifact is locally installed or- falseif artifact is remotely cached.
- Returns:
- A relative path representing artifact path.
 
- 
getPathForMetadatapublic String getPathForMetadata(org.eclipse.aether.metadata.Metadata metadata, String repositoryKey) Description copied from interface:LocalPathComposerGets the relative path for locally installed (repositoryKey=local) or remotely cached metadata. TherepositoryKeyshould be used at caller discretion, it merely denotes the origin of the metadata, while value "local" usually means local origin, but again, this is not a must or enforced, just how things happened so far.- Specified by:
- getPathForMetadatain interface- LocalPathComposer
- Parameters:
- metadata- The metadata for which to determine the path, must not be- null.
- repositoryKey- The repository key, never- null.
- Returns:
- A relative path representing metadata path.
 
 
-