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 java.lang.Object implements LocalPathPrefixComposerFactory
Support class forLocalPathPrefixComposerFactoryimplementations: it predefines and makes re-usable common configuration getters, and defines a support class forLocalPathPrefixComposercarrying 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:
DefaultLocalPathPrefixComposerFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classLocalPathPrefixComposerFactorySupport.LocalPathPrefixComposerSupportSupport class for composers: it defines protected members for all the predefined configuration values and provides default implementation for methods.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONFIG_PROP_LOCAL_PREFIXThe prefix to use for locally installed artifacts.static java.lang.StringCONFIG_PROP_RELEASES_PREFIXThe prefix to use for release artifacts.static java.lang.StringCONFIG_PROP_REMOTE_PREFIXThe prefix to use for remotely cached artifacts.static java.lang.StringCONFIG_PROP_SNAPSHOTS_PREFIXThe prefix to use for snapshot artifacts.static java.lang.StringCONFIG_PROP_SPLITWhether LRM should split local and remote artifacts.static java.lang.StringCONFIG_PROP_SPLIT_LOCALWhether locally installed artifacts should be split by version (release/snapshot).static java.lang.StringCONFIG_PROP_SPLIT_REMOTEWhether cached artifacts should be split by version (release/snapshot).static java.lang.StringCONFIG_PROP_SPLIT_REMOTE_REPOSITORYWhether cached artifacts should be split by origin repository (repository ID).static java.lang.StringCONFIG_PROP_SPLIT_REMOTE_REPOSITORY_LASTFor 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 java.lang.StringDEFAULT_LOCAL_PREFIXstatic java.lang.StringDEFAULT_RELEASES_PREFIXstatic java.lang.StringDEFAULT_REMOTE_PREFIXstatic java.lang.StringDEFAULT_SNAPSHOTS_PREFIXstatic booleanDEFAULT_SPLITstatic booleanDEFAULT_SPLIT_LOCALstatic booleanDEFAULT_SPLIT_REMOTEstatic booleanDEFAULT_SPLIT_REMOTE_REPOSITORYstatic booleanDEFAULT_SPLIT_REMOTE_REPOSITORY_LAST
-
Constructor Summary
Constructors Constructor Description LocalPathPrefixComposerFactorySupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetLocalPrefix(org.eclipse.aether.RepositorySystemSession session)protected java.lang.StringgetReleasesPrefix(org.eclipse.aether.RepositorySystemSession session)protected java.lang.StringgetRemotePrefix(org.eclipse.aether.RepositorySystemSession session)protected java.lang.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, wait
-
Methods inherited from interface org.eclipse.aether.internal.impl.LocalPathPrefixComposerFactory
createComposer
-
-
-
-
Field Detail
-
CONFIG_PROP_SPLIT
public static final java.lang.String CONFIG_PROP_SPLIT
Whether LRM should split local and remote artifacts.- See Also:
- Constant Field Values
-
DEFAULT_SPLIT
public static final boolean DEFAULT_SPLIT
- See Also:
- Constant Field Values
-
CONFIG_PROP_LOCAL_PREFIX
public static final java.lang.String CONFIG_PROP_LOCAL_PREFIX
The prefix to use for locally installed artifacts.- See Also:
- Constant Field Values
-
DEFAULT_LOCAL_PREFIX
public static final java.lang.String DEFAULT_LOCAL_PREFIX
- See Also:
- Constant Field Values
-
CONFIG_PROP_SPLIT_LOCAL
public static final java.lang.String CONFIG_PROP_SPLIT_LOCAL
Whether locally installed artifacts should be split by version (release/snapshot).- See Also:
- Constant Field Values
-
DEFAULT_SPLIT_LOCAL
public static final boolean DEFAULT_SPLIT_LOCAL
- See Also:
- Constant Field Values
-
CONFIG_PROP_REMOTE_PREFIX
public static final java.lang.String CONFIG_PROP_REMOTE_PREFIX
The prefix to use for remotely cached artifacts.- See Also:
- Constant Field Values
-
DEFAULT_REMOTE_PREFIX
public static final java.lang.String DEFAULT_REMOTE_PREFIX
- See Also:
- Constant Field Values
-
CONFIG_PROP_SPLIT_REMOTE
public static final java.lang.String CONFIG_PROP_SPLIT_REMOTE
Whether cached artifacts should be split by version (release/snapshot).- See Also:
- Constant Field Values
-
DEFAULT_SPLIT_REMOTE
public static final boolean DEFAULT_SPLIT_REMOTE
- See Also:
- Constant Field Values
-
CONFIG_PROP_SPLIT_REMOTE_REPOSITORY
public static final java.lang.String CONFIG_PROP_SPLIT_REMOTE_REPOSITORY
Whether cached artifacts should be split by origin repository (repository ID).- See Also:
- Constant Field Values
-
DEFAULT_SPLIT_REMOTE_REPOSITORY
public static final boolean DEFAULT_SPLIT_REMOTE_REPOSITORY
- See Also:
- Constant Field Values
-
CONFIG_PROP_SPLIT_REMOTE_REPOSITORY_LAST
public static final java.lang.String 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:
- Constant Field Values
-
DEFAULT_SPLIT_REMOTE_REPOSITORY_LAST
public static final boolean DEFAULT_SPLIT_REMOTE_REPOSITORY_LAST
- See Also:
- Constant Field Values
-
CONFIG_PROP_RELEASES_PREFIX
public static final java.lang.String CONFIG_PROP_RELEASES_PREFIX
The prefix to use for release artifacts.- See Also:
- Constant Field Values
-
DEFAULT_RELEASES_PREFIX
public static final java.lang.String DEFAULT_RELEASES_PREFIX
- See Also:
- Constant Field Values
-
CONFIG_PROP_SNAPSHOTS_PREFIX
public static final java.lang.String CONFIG_PROP_SNAPSHOTS_PREFIX
The prefix to use for snapshot artifacts.- See Also:
- Constant Field Values
-
DEFAULT_SNAPSHOTS_PREFIX
public static final java.lang.String DEFAULT_SNAPSHOTS_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LocalPathPrefixComposerFactorySupport
public LocalPathPrefixComposerFactorySupport()
-
-
Method Detail
-
isSplit
protected boolean isSplit(org.eclipse.aether.RepositorySystemSession session)
-
getLocalPrefix
protected java.lang.String getLocalPrefix(org.eclipse.aether.RepositorySystemSession session)
-
isSplitLocal
protected boolean isSplitLocal(org.eclipse.aether.RepositorySystemSession session)
-
getRemotePrefix
protected java.lang.String getRemotePrefix(org.eclipse.aether.RepositorySystemSession session)
-
isSplitRemote
protected boolean isSplitRemote(org.eclipse.aether.RepositorySystemSession session)
-
isSplitRemoteRepository
protected boolean isSplitRemoteRepository(org.eclipse.aether.RepositorySystemSession session)
-
isSplitRemoteRepositoryLast
protected boolean isSplitRemoteRepositoryLast(org.eclipse.aether.RepositorySystemSession session)
-
getReleasesPrefix
protected java.lang.String getReleasesPrefix(org.eclipse.aether.RepositorySystemSession session)
-
getSnapshotsPrefix
protected java.lang.String getSnapshotsPrefix(org.eclipse.aether.RepositorySystemSession session)
-
-