Class DefaultDependencyManager

java.lang.Object
org.eclipse.aether.util.graph.manager.DefaultDependencyManager
All Implemented Interfaces:
DependencyManager

public final class DefaultDependencyManager extends Object implements DependencyManager
A dependency manager managing dependencies on all levels supporting transitive dependency management.

Note:Unlike the ClassicDependencyManager and the TransitiveDependencyManager this implementation applies management also on the first level. This is considered the resolver's default behaviour. It ignores all management overrides supported by the MavenModelBuilder.

Since:
1.4.0
  • Field Details

  • Constructor Details

  • Method Details

    • deriveChildManager

      public DependencyManager deriveChildManager(DependencyCollectionContext context)
      Description copied from interface: DependencyManager
      Derives a dependency manager for the specified collection context. When calculating the child manager, implementors are strongly advised to simply return the current instance if nothing changed to help save memory.
      Specified by:
      deriveChildManager in interface DependencyManager
      Parameters:
      context - The dependency collection context, must not be null.
      Returns:
      The dependency manager for the dependencies of the target node or null if dependency management should no longer be applied.
    • manageDependency

      public DependencyManagement manageDependency(Dependency dependency)
      Description copied from interface: DependencyManager
      Applies dependency management to the specified dependency.
      Specified by:
      manageDependency in interface DependencyManager
      Parameters:
      dependency - The dependency to manage, must not be null.
      Returns:
      The management update to apply to the dependency or null if the dependency is not managed at all.
    • getKey

      private Object getKey(Artifact a)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object