@Singleton @Named public final class DefaultLocalPathComposer extends Object implements LocalPathComposer
LocalPathComposer
.Constructor and Description |
---|
DefaultLocalPathComposer() |
Modifier and Type | Method and Description |
---|---|
String |
getPathForArtifact(org.eclipse.aether.artifact.Artifact artifact,
boolean local)
Gets the relative path for a locally installed (local=true) or remotely cached (local=false) artifact.
|
String |
getPathForMetadata(org.eclipse.aether.metadata.Metadata metadata,
String repositoryKey)
Gets the relative path for locally installed (repositoryKey=local) or remotely cached metadata.
|
public DefaultLocalPathComposer()
public String getPathForArtifact(org.eclipse.aether.artifact.Artifact artifact, boolean local)
LocalPathComposer
getPathForArtifact
in interface LocalPathComposer
artifact
- The artifact for which to determine the path, must not be null
.local
- true
if artifact is locally installed or false
if artifact is remotely cached.public String getPathForMetadata(org.eclipse.aether.metadata.Metadata metadata, String repositoryKey)
LocalPathComposer
repositoryKey
should 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.getPathForMetadata
in interface LocalPathComposer
metadata
- The metadata for which to determine the path, must not be null
.repositoryKey
- The repository key, never null
.Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.