Interface VersionCatalogUpdate.CandidateDetails
- Enclosing class:
- VersionCatalogUpdate
protected static interface VersionCatalogUpdate.CandidateDetails
Stateful details about a candidate. Allows subclasses to
perform custom selection.
-
Method Summary
Modifier and TypeMethodDescriptionvoidTells that this version should be selected if no better match is found.voidAccepts a candidate.A candidate version of the module, as found in a repositoryThe current version of a module, as found in the catalogThe candidate module, in the group:name formatvoidrejectCandidate(String reason) Rejects a candidate with a reason.
-
Method Details
-
getModule
String getModule()The candidate module, in the group:name format- Returns:
- the module id
-
getCurrentVersion
ComparableVersion getCurrentVersion()The current version of a module, as found in the catalog- Returns:
- the current version
-
getCandidateVersion
ComparableVersion getCandidateVersion()A candidate version of the module, as found in a repository- Returns:
- the candidate version
-
acceptAsFallback
void acceptAsFallback()Tells that this version should be selected if no better match is found. The first fallback will be used, any subsequent call to this method once a fallback is set will be ignored. -
rejectCandidate
Rejects a candidate with a reason.- Parameters:
reason- the reason to reject the candidate
-
acceptCandidate
void acceptCandidate()Accepts a candidate. No other candidate will be tested.
-