Class NoopDependencyManager
- java.lang.Object
-
- org.eclipse.aether.util.graph.manager.NoopDependencyManager
-
- All Implemented Interfaces:
DependencyManager
public final class NoopDependencyManager extends java.lang.Object implements DependencyManager
A dependency manager that does not do any dependency management.
-
-
Field Summary
Fields Modifier and Type Field Description static DependencyManagerINSTANCEA ready-made instance of this dependency manager which can safely be reused throughout an entire application regardless of multi-threading.
-
Constructor Summary
Constructors Constructor Description NoopDependencyManager()Creates a new instance of this dependency manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DependencyManagerderiveChildManager(DependencyCollectionContext context)Derives a dependency manager for the specified collection context.booleanequals(java.lang.Object obj)inthashCode()DependencyManagementmanageDependency(Dependency dependency)Applies dependency management to the specified dependency.
-
-
-
Field Detail
-
INSTANCE
public static final DependencyManager INSTANCE
A ready-made instance of this dependency manager which can safely be reused throughout an entire application regardless of multi-threading.
-
-
Constructor Detail
-
NoopDependencyManager
public NoopDependencyManager()
Creates a new instance of this dependency manager. Usually,INSTANCEshould be used instead.
-
-
Method Detail
-
deriveChildManager
public DependencyManager deriveChildManager(DependencyCollectionContext context)
Description copied from interface:DependencyManagerDerives 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:
deriveChildManagerin interfaceDependencyManager- Parameters:
context- The dependency collection context, must not benull.- Returns:
- The dependency manager for the dependencies of the target node or
nullif dependency management should no longer be applied.
-
manageDependency
public DependencyManagement manageDependency(Dependency dependency)
Description copied from interface:DependencyManagerApplies dependency management to the specified dependency.- Specified by:
manageDependencyin interfaceDependencyManager- Parameters:
dependency- The dependency to manage, must not benull.- Returns:
- The management update to apply to the dependency or
nullif the dependency is not managed at all.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-