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 Details

  • Method Details

    • prepare

      Prepares for dependency collection.
      Parameters:
      session - The repository system session, must not be null.
      request - The collect request about to be processed, must not be null.
      Returns:
      The session to use for the collection, possibly adapted by this checker.
    • isSatisfactory

      Performs checks on finished dependency collection. It should return true if the collection was deemed "satisfactory". If should return false only, 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 throw DependencyCollectionException.
      Parameters:
      session - The repository system session, must not be null.
      request - The collect request that was processed, must not be null.
      result - The result of the dependency collection, must not be null.
      Returns:
      true if the collection result is satisfactory, false if the checker adjusted resolution parameters and collection should be repeated.
      Throws:
      DependencyCollectionException - If the collection is not satisfactory and cannot be remedied.