Class DefaultVersionSchemeSelector
java.lang.Object
org.eclipse.aether.internal.impl.version.DefaultVersionSchemeSelector
- All Implemented Interfaces:
VersionSchemeSelector
@Singleton
@Named
public class DefaultVersionSchemeSelector
extends Object
implements VersionSchemeSelector
Default implementation.
- Since:
- 2.0.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns immutable map of all supported version schemes (maps scheme name to scheme instance).selectVersionScheme
(String schemeName) Tries to select a version scheme from the specified scheme name.Tries to select a version scheme from the specified scheme name.
-
Field Details
-
CONFIG_PROP_VERSION_SCHEME_NAME
The name of the version scheme to be used in session.- See Also:
- Sourced from:
RepositorySystemSession.getConfigProperties()
- Value type:
String
- Default value:
DEFAULT_VERSION_SCHEME_NAME
-
DEFAULT_VERSION_SCHEME_NAME
- See Also:
-
-
Constructor Details
-
DefaultVersionSchemeSelector
-
-
Method Details
-
selectVersionScheme
Description copied from interface:VersionSchemeSelector
Tries to select a version scheme from the specified scheme name.- Specified by:
selectVersionScheme
in interfaceVersionSchemeSelector
- Parameters:
schemeName
- The schemeName to select scheme for, must not benull
.- Returns:
- The scheme selected, never
null
.
-
selectVersionScheme
Description copied from interface:VersionSchemeSelector
Tries to select a version scheme from the specified scheme name.- Specified by:
selectVersionScheme
in interfaceVersionSchemeSelector
- Parameters:
session
- The repository system session from which to configure the scheme, must not benull
.- Returns:
- The scheme selected, never
null
.
-
getVersionSchemes
Description copied from interface:VersionSchemeSelector
Returns immutable map of all supported version schemes (maps scheme name to scheme instance). This represents ALL the schemes supported by Resolver, either provided out of the box, or extension installed.- Specified by:
getVersionSchemes
in interfaceVersionSchemeSelector
-