public interface AppModelResolver
| Modifier and Type | Method and Description |
|---|---|
String |
getLatestVersion(AppArtifact artifact,
String upToVersion,
boolean inclusive)
Returns the latest version for the artifact up to the version specified.
|
String |
getNextVersion(AppArtifact artifact,
String upToVersion,
boolean inclusive)
Returns the next version for the artifact which is not later than the version specified.
|
List<String> |
listLaterVersions(AppArtifact artifact,
String upToVersion,
boolean inclusive)
Lists versions released later than the version of the artifact up to the version
specified or all the later versions in case the up-to-version is not provided.
|
void |
relink(AppArtifact appArtifact,
Path localPath)
(Re-)links an artifact to a path.
|
Path |
resolve(AppArtifact artifact)
Resolves an artifact.
|
AppModel |
resolveModel(AppArtifact artifact)
Collect dependencies that are required at runtime, excluding test and optional depependencies.
|
AppModel |
resolveModel(AppArtifact root,
List<AppDependency> deps)
Collects artifact dependencies merging the provided direct dependencies in
|
void relink(AppArtifact appArtifact, Path localPath) throws AppModelResolverException
appArtifact - an artifact to (re-)link to the pathlocalPath - local path to the artifactAppModelResolverException - in case of a failurePath resolve(AppArtifact artifact) throws AppModelResolverException
artifact - artifact to resolveAppModelResolverException - in case of a failureAppModel resolveModel(AppArtifact artifact) throws AppModelResolverException
artifact - AppModelResolverExceptionAppModel resolveModel(AppArtifact root, List<AppDependency> deps) throws AppModelResolverException
root - root artifactdeps - some or all of the direct dependencies that should be used in place of the original onesAppModelResolverException - in case of a failureList<String> listLaterVersions(AppArtifact artifact, String upToVersion, boolean inclusive) throws AppModelResolverException
artifact - artifact to list the versions forAppModelResolverException - in case of a failureString getNextVersion(AppArtifact artifact, String upToVersion, boolean inclusive) throws AppModelResolverException
artifact - artifactupToVersion - max version boundaryinclusive - whether the upToVersion should be included in the range or notAppModelResolverException - in case of a failureString getLatestVersion(AppArtifact artifact, String upToVersion, boolean inclusive) throws AppModelResolverException
artifact - artifactupToVersion - max version boundaryinclusive - whether the upToVersion should be included in the range or notAppModelResolverException - in case of a failureCopyright © 2019 JBoss by Red Hat. All rights reserved.