Class DependencyResolutionSkipper

java.lang.Object
org.eclipse.aether.internal.impl.collect.bf.DependencyResolutionSkipper
All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
DependencyResolutionSkipper.DefaultDependencyResolutionSkipper, DependencyResolutionSkipper.NeverDependencyResolutionSkipper

abstract class DependencyResolutionSkipper extends Object implements Closeable
A skipper that determines whether to skip resolving given node during the dependency collection. Internal helper for BfDependencyCollector.
Since:
1.8.0
  • Constructor Details

    • DependencyResolutionSkipper

      DependencyResolutionSkipper()
  • Method Details

    • skipResolution

      abstract boolean skipResolution(DependencyNode node, List<DependencyNode> parents)
      Check whether the resolution of current node can be skipped before resolving.
      Parameters:
      node - Current node
      parents - All parent nodes of current node
      Returns:
      true if the node can be skipped for resolution, false if resolution required.
    • cache

      abstract void cache(DependencyNode node, List<DependencyNode> parents)
      Cache the resolution result when a node is resolved by
      invalid @link
      {@link BfDependencyCollector) after resolution.
      Parameters:
      node - Current node
      parents - All parent nodes of current node
    • close

      public abstract void close()
      Close: Print the skip/resolve status report for all nodes.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • defaultSkipper

      Returns new instance of "default" skipper. Note: type is specialized for testing purposes.
    • neverSkipper

      public static DependencyResolutionSkipper neverSkipper()
      Returns instance of "never" skipper.