Package org.eclipse.aether.spi.version
Interface VersionSchemeSelector
public interface VersionSchemeSelector
Selects a version scheme from the installed version schemes.
- Since:
- 2.0.0
- Restriction:
- This interface is not intended to be extended by clients.
- Restriction:
- This interface is not intended to be implemented by clients.
-
Method Summary
Modifier and TypeMethodDescriptionReturns immutable map of all supported version schemes (maps scheme name to scheme instance).org.eclipse.aether.version.VersionScheme
selectVersionScheme
(String schemeName) Tries to select a version scheme from the specified scheme name.org.eclipse.aether.version.VersionScheme
selectVersionScheme
(org.eclipse.aether.RepositorySystemSession session) Tries to select a version scheme from the specified scheme name.
-
Method Details
-
selectVersionScheme
Tries to select a version scheme from the specified scheme name.- Parameters:
schemeName
- The schemeName to select scheme for, must not benull
.- Returns:
- The scheme selected, never
null
. - Throws:
IllegalArgumentException
- if asked scheme name is not supported.NullPointerException
- if passed in names isnull
.
-
selectVersionScheme
org.eclipse.aether.version.VersionScheme selectVersionScheme(org.eclipse.aether.RepositorySystemSession session) Tries to select a version scheme from the specified scheme name.- Parameters:
session
- The repository system session from which to configure the scheme, must not benull
.- Returns:
- The scheme selected, never
null
. - Throws:
IllegalArgumentException
- If none of the installed schemes cannot be selected.NullPointerException
- if passed in session isnull
.
-
getVersionSchemes
Map<String,org.eclipse.aether.version.VersionScheme> getVersionSchemes()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.
-