Package org.eclipse.aether.internal.impl
Interface LocalPathComposer
-
- All Known Implementing Classes:
DefaultLocalPathComposer
public interface LocalPathComposer
ComposesArtifactandMetadatarelative paths to be used inLocalRepositoryManager.- Since:
- 1.8.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetPathForArtifact(org.eclipse.aether.artifact.Artifact artifact, boolean local)Gets the relative path for a locally installed (local=true) or remotely cached (local=false) artifact.java.lang.StringgetPathForMetadata(org.eclipse.aether.metadata.Metadata metadata, java.lang.String repositoryKey)Gets the relative path for locally installed (repositoryKey=local) or remotely cached metadata.
-
-
-
Method Detail
-
getPathForArtifact
java.lang.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.- Parameters:
artifact- The artifact for which to determine the path, must not benull.local-trueif artifact is locally installed orfalseif artifact is remotely cached.- Returns:
- A relative path representing artifact path.
-
getPathForMetadata
java.lang.String getPathForMetadata(org.eclipse.aether.metadata.Metadata metadata, java.lang.String repositoryKey)
Gets 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.- Parameters:
metadata- The metadata for which to determine the path, must not benull.repositoryKey- The repository key, nevernull.- Returns:
- A relative path representing metadata path.
-
-