public class SortEngine
extends java.lang.Object
Constructor and Description |
---|
SortEngine(SortEngineSettings settings) |
Modifier and Type | Method and Description |
---|---|
protected CircularDependencyStrategy |
getCircularStrategy() |
protected VersionMatcher |
getVersionMatcher() |
java.util.List |
sortModuleDescriptors(java.util.Collection moduleDescriptors,
SortOptions options)
Sorts the given ModuleDescriptors from the less dependent to the more dependent.
|
java.util.List |
sortNodes(java.util.Collection nodes,
SortOptions options) |
public SortEngine(SortEngineSettings settings)
public java.util.List sortNodes(java.util.Collection nodes, SortOptions options)
public java.util.List sortModuleDescriptors(java.util.Collection moduleDescriptors, SortOptions options) throws CircularDependencyException
moduleDescriptors
- a Collection of ModuleDescriptor to sortoptions
- Options to use to sort the descriptors.CircularDependencyException
- if a circular dependency exists and circular dependency strategy decide to throw
an exceptionprotected CircularDependencyStrategy getCircularStrategy()
protected VersionMatcher getVersionMatcher()