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
Nested ClassesModifier and TypeClassDescriptionprotected static classSupport class for composers: it defines protected members for all the predefined configuration values and provides default implementation for methods. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe prefix to use for locally installed artifacts.static final StringThe prefix to use for release artifacts.static final StringThe prefix to use for remotely cached artifacts.static final StringThe prefix to use for snapshot artifacts.static final StringWhether LRM should split local and remote artifacts.static final StringWhether locally installed artifacts should be split by version (release/snapshot).static final StringWhether cached artifacts should be split by version (release/snapshot).static final StringWhether cached artifacts should be split by origin repository (repository ID).static final StringFor 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 Stringstatic final Stringstatic final Stringstatic final Stringstatic final booleanstatic final booleanstatic final booleanstatic final booleanstatic final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetLocalPrefix(org.eclipse.aether.RepositorySystemSession session) protected StringgetReleasesPrefix(org.eclipse.aether.RepositorySystemSession session) protected StringgetRemotePrefix(org.eclipse.aether.RepositorySystemSession session) protected StringgetSnapshotsPrefix(org.eclipse.aether.RepositorySystemSession session) protected booleanisSplit(org.eclipse.aether.RepositorySystemSession session) protected booleanisSplitLocal(org.eclipse.aether.RepositorySystemSession session) protected booleanisSplitRemote(org.eclipse.aether.RepositorySystemSession session) protected booleanisSplitRemoteRepository(org.eclipse.aether.RepositorySystemSession session) protected booleanisSplitRemoteRepositoryLast(org.eclipse.aether.RepositorySystemSession session) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-