Package org.eclipse.aether.internal.impl
Class LocalPathPrefixComposerFactorySupport
java.lang.Object
org.eclipse.aether.internal.impl.LocalPathPrefixComposerFactorySupport
- All Implemented Interfaces:
LocalPathPrefixComposerFactory
- Direct Known Subclasses:
DefaultLocalPathPrefixComposerFactory
public abstract class LocalPathPrefixComposerFactorySupport
extends Object
implements LocalPathPrefixComposerFactory
Support class for
LocalPathPrefixComposerFactory
implementations: it predefines and makes re-usable
common configuration getters, and defines a support class for LocalPathPrefixComposer
carrying same
configuration and providing default implementation for all methods.
Implementors should extend this class to implement custom split strategies. If one needs to alter default configuration, they should override any configuration getter from this class.
- Since:
- 1.8.1
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Support class for composers: it defines protected members for all the predefined configuration values and provides default implementation for methods. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The prefix to use for locally installed artifacts.static final String
The prefix to use for release artifacts.static final String
The prefix to use for remotely cached artifacts.static final String
The prefix to use for snapshot artifacts.static final String
Whether LRM should split local and remote artifacts.static final String
Whether locally installed artifacts should be split by version (release/snapshot).static final String
Whether cached artifacts should be split by version (release/snapshot).static final String
Whether cached artifacts should be split by origin repository (repository ID).static final String
For cached artifacts, if both splitRemote and splitRemoteRepository are set to true sets the splitting order: by default it is repositoryId/version (false) or version/repositoryId (true)static final String
static final String
static final String
static final String
static final boolean
static final boolean
static final boolean
static final boolean
static final boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getLocalPrefix
(org.eclipse.aether.RepositorySystemSession session) protected String
getReleasesPrefix
(org.eclipse.aether.RepositorySystemSession session) protected String
getRemotePrefix
(org.eclipse.aether.RepositorySystemSession session) protected String
getSnapshotsPrefix
(org.eclipse.aether.RepositorySystemSession session) protected boolean
isSplit
(org.eclipse.aether.RepositorySystemSession session) protected boolean
isSplitLocal
(org.eclipse.aether.RepositorySystemSession session) protected boolean
isSplitRemote
(org.eclipse.aether.RepositorySystemSession session) protected boolean
isSplitRemoteRepository
(org.eclipse.aether.RepositorySystemSession session) protected boolean
isSplitRemoteRepositoryLast
(org.eclipse.aether.RepositorySystemSession session) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.aether.internal.impl.LocalPathPrefixComposerFactory
createComposer
-
Field Details
-
CONFIG_PROP_SPLIT
Whether LRM should split local and remote artifacts.- See Also:
- Sourced from:
RepositorySystemSession.getConfigProperties()
- Value type:
Boolean
- Default value:
DEFAULT_SPLIT
-
DEFAULT_SPLIT
- See Also:
-
CONFIG_PROP_LOCAL_PREFIX
The prefix to use for locally installed artifacts.- See Also:
- Sourced from:
RepositorySystemSession.getConfigProperties()
- Value type:
String
- Default value:
DEFAULT_LOCAL_PREFIX
-
DEFAULT_LOCAL_PREFIX
- See Also:
-
CONFIG_PROP_SPLIT_LOCAL
Whether locally installed artifacts should be split by version (release/snapshot).- See Also:
- Sourced from:
RepositorySystemSession.getConfigProperties()
- Value type:
Boolean
- Default value:
DEFAULT_SPLIT_LOCAL
-
DEFAULT_SPLIT_LOCAL
- See Also:
-
CONFIG_PROP_REMOTE_PREFIX
The prefix to use for remotely cached artifacts.- See Also:
- Sourced from:
RepositorySystemSession.getConfigProperties()
- Value type:
String
- Default value:
DEFAULT_REMOTE_PREFIX
-
DEFAULT_REMOTE_PREFIX
- See Also:
-
CONFIG_PROP_SPLIT_REMOTE
Whether cached artifacts should be split by version (release/snapshot).- See Also:
- Sourced from:
RepositorySystemSession.getConfigProperties()
- Value type:
Boolean
- Default value:
DEFAULT_SPLIT_REMOTE
-
DEFAULT_SPLIT_REMOTE
- See Also:
-
CONFIG_PROP_SPLIT_REMOTE_REPOSITORY
Whether cached artifacts should be split by origin repository (repository ID).- See Also:
- Sourced from:
RepositorySystemSession.getConfigProperties()
- Value type:
Boolean
- Default value:
DEFAULT_SPLIT_REMOTE_REPOSITORY
-
DEFAULT_SPLIT_REMOTE_REPOSITORY
- See Also:
-
CONFIG_PROP_SPLIT_REMOTE_REPOSITORY_LAST
For cached artifacts, if both splitRemote and splitRemoteRepository are set to true sets the splitting order: by default it is repositoryId/version (false) or version/repositoryId (true)- See Also:
- Sourced from:
RepositorySystemSession.getConfigProperties()
- Value type:
Boolean
- Default value:
DEFAULT_SPLIT_REMOTE_REPOSITORY_LAST
-
DEFAULT_SPLIT_REMOTE_REPOSITORY_LAST
- See Also:
-
CONFIG_PROP_RELEASES_PREFIX
The prefix to use for release artifacts.- See Also:
- Sourced from:
RepositorySystemSession.getConfigProperties()
- Value type:
String
- Default value:
DEFAULT_RELEASES_PREFIX
-
DEFAULT_RELEASES_PREFIX
- See Also:
-
CONFIG_PROP_SNAPSHOTS_PREFIX
The prefix to use for snapshot artifacts.- See Also:
- Sourced from:
RepositorySystemSession.getConfigProperties()
- Value type:
String
- Default value:
DEFAULT_SNAPSHOTS_PREFIX
-
DEFAULT_SNAPSHOTS_PREFIX
- See Also:
-
-
Constructor Details
-
LocalPathPrefixComposerFactorySupport
-
-
Method Details
-
isSplit
-
getLocalPrefix
-
isSplitLocal
-
getRemotePrefix
-
isSplitRemote
-
isSplitRemoteRepository
-
isSplitRemoteRepositoryLast
-
getReleasesPrefix
-
getSnapshotsPrefix
-