public final class DefaultDependencyManager extends Object implements DependencyManager
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.
| Constructor and Description |
|---|
DefaultDependencyManager()
Creates a new dependency manager without any management information.
|
| Modifier and Type | Method and Description |
|---|---|
DependencyManager |
deriveChildManager(DependencyCollectionContext context)
Derives a dependency manager for the specified collection context.
|
boolean |
equals(Object obj) |
int |
hashCode() |
DependencyManagement |
manageDependency(Dependency dependency)
Applies dependency management to the specified dependency.
|
public DefaultDependencyManager()
public DependencyManager deriveChildManager(DependencyCollectionContext context)
DependencyManagerderiveChildManager in interface DependencyManagercontext - The dependency collection context, must not be null.null if dependency management
should no longer be applied.public DependencyManagement manageDependency(Dependency dependency)
DependencyManagermanageDependency in interface DependencyManagerdependency - The dependency to manage, must not be null.null if the dependency is not managed at all.Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.