org.sonatype.aether.impl
Interface VersionResolver


public interface VersionResolver

Author:
Benjamin Bentmann

Method Summary
 VersionResult resolveVersion(RepositorySystemSession session, VersionRequest request)
          Resolves an artifact's meta version (if any) to a concrete version.
 

Method Detail

resolveVersion

VersionResult resolveVersion(RepositorySystemSession session,
                             VersionRequest request)
                             throws VersionResolutionException
Resolves an artifact's meta version (if any) to a concrete version. For example, resolves "1.0-SNAPSHOT" to "1.0-20090208.132618-23" or "RELEASE"/"LATEST" to "2.0".

Parameters:
session - The repository session, must not be null.
request - The version request, must not be null
Returns:
The version result, never null.
Throws:
VersionResolutionException - If the metaversion could not be resolved.


Copyright © 2010 Sonatype, Inc.. All Rights Reserved.