Class ClassicDependencyManager
- java.lang.Object
-
- org.eclipse.aether.util.graph.manager.ClassicDependencyManager
-
- All Implemented Interfaces:
DependencyManager
public final class ClassicDependencyManager extends Object implements DependencyManager
A dependency manager that mimics the way Maven 2.x works.
-
-
Constructor Summary
Constructors Constructor Description ClassicDependencyManager()
Creates a new dependency manager without any management information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
ClassicDependencyManager
public ClassicDependencyManager()
Creates a new dependency manager without any management information.
-
-
Method Detail
-
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 interfaceDependencyManager
- Parameters:
context
- The dependency collection context, must not benull
.- 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 interfaceDependencyManager
- Parameters:
dependency
- The dependency to manage, must not benull
.- Returns:
- The management update to apply to the dependency or
null
if the dependency is not managed at all.
-
-