protected abstract static class LocalPathPrefixComposerFactorySupport.LocalPathPrefixComposerSupport extends java.lang.Object implements LocalPathPrefixComposer
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
localPrefix |
protected java.lang.String |
releasesPrefix |
protected java.lang.String |
remotePrefix |
protected java.lang.String |
snapshotsPrefix |
protected boolean |
split |
protected boolean |
splitLocal |
protected boolean |
splitRemote |
protected boolean |
splitRemoteRepository |
protected boolean |
splitRemoteRepositoryLast |
Modifier | Constructor and Description |
---|---|
protected |
LocalPathPrefixComposerSupport(boolean split,
java.lang.String localPrefix,
boolean splitLocal,
java.lang.String remotePrefix,
boolean splitRemote,
boolean splitRemoteRepository,
boolean splitRemoteRepositoryLast,
java.lang.String releasesPrefix,
java.lang.String snapshotsPrefix) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPathPrefixForLocalArtifact(Artifact artifact)
Gets the path prefix for a locally installed artifact.
|
java.lang.String |
getPathPrefixForLocalMetadata(Metadata metadata)
Gets the path prefix for locally installed metadata.
|
java.lang.String |
getPathPrefixForRemoteArtifact(Artifact artifact,
RemoteRepository repository)
Gets the path prefix for an artifact cached from a remote repository.
|
java.lang.String |
getPathPrefixForRemoteMetadata(Metadata metadata,
RemoteRepository repository)
Gets the path prefix for metadata cached from a remote repository.
|
protected boolean |
isSnapshot(Metadata metadata) |
protected final boolean split
protected final java.lang.String localPrefix
protected final boolean splitLocal
protected final java.lang.String remotePrefix
protected final boolean splitRemote
protected final boolean splitRemoteRepository
protected final boolean splitRemoteRepositoryLast
protected final java.lang.String releasesPrefix
protected final java.lang.String snapshotsPrefix
protected LocalPathPrefixComposerSupport(boolean split, java.lang.String localPrefix, boolean splitLocal, java.lang.String remotePrefix, boolean splitRemote, boolean splitRemoteRepository, boolean splitRemoteRepositoryLast, java.lang.String releasesPrefix, java.lang.String snapshotsPrefix)
public java.lang.String getPathPrefixForLocalArtifact(Artifact artifact)
LocalPathPrefixComposer
getPathPrefixForLocalArtifact
in interface LocalPathPrefixComposer
artifact
- The artifact for which to determine the prefix, must not be null
.null
(note: null
s and empty strings are treated equally).public java.lang.String getPathPrefixForRemoteArtifact(Artifact artifact, RemoteRepository repository)
LocalPathPrefixComposer
getPathPrefixForRemoteArtifact
in interface LocalPathPrefixComposer
artifact
- The artifact for which to determine the prefix, must not be null
.repository
- The remote repository, never null
.null
(note: null
s and empty strings are treated equally).public java.lang.String getPathPrefixForLocalMetadata(Metadata metadata)
LocalPathPrefixComposer
getPathPrefixForLocalMetadata
in interface LocalPathPrefixComposer
metadata
- The metadata for which to determine the prefix, must not be null
.null
(note: null
s and empty strings are treated equally).public java.lang.String getPathPrefixForRemoteMetadata(Metadata metadata, RemoteRepository repository)
LocalPathPrefixComposer
getPathPrefixForRemoteMetadata
in interface LocalPathPrefixComposer
metadata
- The metadata for which to determine the prefix, must not be null
.repository
- The remote repository, never null
.null
(note: null
s and empty strings are treated equally).protected boolean isSnapshot(Metadata metadata)