org.apache.ivy.core.sort
Class ModuleDescriptorSorter

java.lang.Object
  extended by org.apache.ivy.core.sort.ModuleDescriptorSorter

public class ModuleDescriptorSorter
extends java.lang.Object

Inner helper class for sorting ModuleDescriptors.

Author:
baumkar (for most of the code), xavier hanin (for the sorting of nodes based upon sort of modules)

Constructor Summary
ModuleDescriptorSorter(java.util.Collection moduleDescriptors)
           
 
Method Summary
 java.util.List sortModuleDescriptors(VersionMatcher matcher)
          Iterates over all modules calling sortModuleDescriptorsHelp.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleDescriptorSorter

public ModuleDescriptorSorter(java.util.Collection moduleDescriptors)
Method Detail

sortModuleDescriptors

public java.util.List sortModuleDescriptors(VersionMatcher matcher)
                                     throws CircularDependencyException
Iterates over all modules calling sortModuleDescriptorsHelp.

Returns:
sorted module
Throws:
CircularDependencyException