Package org.eclipse.aether.collection
Interface DependencyCollectionChecker
-
public interface DependencyCollectionChecker
Dependency collector checker. It is able to check dependency collection result, deem it "satisfiable" or augment collection and re-execute it.- Since:
- 2.0.19
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOLLECTOR_CHECKER_SUPPRESSEDConfig property for collector checker suppression.static DependencyCollectionCheckerNOOPA default "no op" implementation.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default booleanisSatisfactory(RepositorySystemSession session, CollectRequest request, CollectResult result)Performs checks on finished dependency collection.default RepositorySystemSessionprepare(RepositorySystemSession session, CollectRequest request)Prepares for dependency collection.
-
-
-
Field Detail
-
NOOP
static final DependencyCollectionChecker NOOP
A default "no op" implementation.
-
COLLECTOR_CHECKER_SUPPRESSED
static final java.lang.String COLLECTOR_CHECKER_SUPPRESSED
Config property for collector checker suppression. Presence of this key will suppress collection checking. This key is not meant for users, but to programmatically signal collection suppression.- See Also:
- Constant Field Values
-
-
Method Detail
-
prepare
default RepositorySystemSession prepare(RepositorySystemSession session, CollectRequest request)
Prepares for dependency collection.- Parameters:
session- The repository system session, must not benull.request- The collect request about to be processed, must not benull.- Returns:
- The session to use for the collection, possibly adapted by this checker.
-
isSatisfactory
default boolean isSatisfactory(RepositorySystemSession session, CollectRequest request, CollectResult result) throws DependencyCollectionException
Performs checks on finished dependency collection. It should returntrueif the collection was deemed "satisfactory". If should returnfalseonly, if collection was not satisfactory, and checker was able to modify resolution parameters (to not repeat same work). In other cases (not satisfactory but no param change would help) it should throwDependencyCollectionException.- Parameters:
session- The repository system session, must not benull.request- The collect request that was processed, must not benull.result- The result of the dependency collection, must not benull.- Returns:
trueif the collection result is satisfactory,falseif the checker adjusted resolution parameters and collection should be repeated.- Throws:
DependencyCollectionException- If the collection is not satisfactory and cannot be remedied.
-
-