org.sonatype.aether.util.graph.manager
Class ClassicDependencyManager

java.lang.Object
  extended by org.sonatype.aether.util.graph.manager.ClassicDependencyManager
All Implemented Interfaces:
DependencyManager

public class ClassicDependencyManager
extends java.lang.Object
implements DependencyManager

A dependency manager that mimics the way Maven 2.x works.

Author:
Benjamin Bentmann

Constructor Summary
ClassicDependencyManager()
          Creates a new dependency manager without any management information.
 
Method Summary
 DependencyManager deriveChildManager(DependencyCollectionContext context)
          Derives a dependency manager for the specified collection context.
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 DependencyManagement manageDependency(Dependency dependency)
          Applies dependency management to the specified dependency.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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 interface DependencyManager
Parameters:
context - The dependency collection context, must not be null.
Returns:
The dependency manager for the dependencies of the target node, must not be null.

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.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.