Class ModuleDependencyGraph


  • public class ModuleDependencyGraph
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ModuleDependencyGraph detectVersionMismatch​(java.lang.String sourceModule)
      Inspects all module dependencies for any whose versions are wrong, and throws a DependencyVersionMismatchException if any are found.
      java.util.List<ModuleInfo> findDependentModules​(java.lang.String moduleId)
      Find a list of the modules that depend on the given module, directly or indirectly.
      java.util.List<ModuleInfo> findRequiredModules​(java.lang.String moduleId)
      Find a list of the modules that given module requires, directly or indirectly.
      java.util.List<ModuleInfo> getInTopologicalOrder()  
      java.util.Collection<java.lang.String> getMissingDependencies​(java.lang.String moduleId)
      Returns a collection of missing dependencies of this module or any of its present dependencies, or empty collection if nothing is missing.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getMissingDependencies

        public java.util.Collection<java.lang.String> getMissingDependencies​(java.lang.String moduleId)
        Returns a collection of missing dependencies of this module or any of its present dependencies, or empty collection if nothing is missing.
      • findDependentModules

        public java.util.List<ModuleInfo> findDependentModules​(java.lang.String moduleId)
        Find a list of the modules that depend on the given module, directly or indirectly. Order will be "topological", meaning that any module in the list may depend on modules that came before it, but not after.
      • findRequiredModules

        public java.util.List<ModuleInfo> findRequiredModules​(java.lang.String moduleId)
        Find a list of the modules that given module requires, directly or indirectly. Order will be "topological", meaning that any module in the list may depend on modules that came before it, but not after.
      • getInTopologicalOrder

        public java.util.List<ModuleInfo> getInTopologicalOrder()
        Returns:
        A list of all modules in topological order, meaning that any module in the list may depend on modules that came before it, but not after.