Class AbstractDependencyManager
java.lang.Object
org.eclipse.aether.util.graph.manager.AbstractDependencyManager
- All Implemented Interfaces:
DependencyManager
- Direct Known Subclasses:
ClassicDependencyManager
,DefaultDependencyManager
,TransitiveDependencyManager
A dependency manager support class.
- Since:
- 2.0.0
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final int
protected final int
protected final int
protected final Map
<Object, Collection<Exclusion>> protected final SystemDependencyScope
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractDependencyManager
(int depth, int deriveUntil, int applyFrom, Map<Object, String> managedVersions, Map<Object, String> managedScopes, Map<Object, Boolean> managedOptionals, Map<Object, String> managedLocalPaths, Map<Object, Collection<Exclusion>> managedExclusions, SystemDependencyScope systemDependencyScope) protected
AbstractDependencyManager
(int deriveUntil, int applyFrom, ScopeManager scopeManager) -
Method Summary
Modifier and TypeMethodDescriptionDerives a dependency manager for the specified collection context.boolean
int
hashCode()
manageDependency
(Dependency dependency) Applies dependency management to the specified dependency.protected abstract DependencyManager
newInstance
(Map<Object, String> managedVersions, Map<Object, String> managedScopes, Map<Object, Boolean> managedOptionals, Map<Object, String> managedLocalPaths, Map<Object, Collection<Exclusion>> managedExclusions)
-
Field Details
-
depth
-
deriveUntil
-
applyFrom
-
managedVersions
-
managedScopes
-
managedOptionals
-
managedLocalPaths
-
managedExclusions
-
systemDependencyScope
-
-
Constructor Details
-
AbstractDependencyManager
-
AbstractDependencyManager
protected AbstractDependencyManager(int depth, int deriveUntil, int applyFrom, Map<Object, String> managedVersions, Map<Object, String> managedScopes, Map<Object, Boolean> managedOptionals, Map<Object, String> managedLocalPaths, Map<Object, Collection<Exclusion>> managedExclusions, SystemDependencyScope systemDependencyScope)
-
-
Method Details
-
newInstance
-
deriveChildManager
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
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.
-
equals
-
hashCode
-