Class ModuleDependencyGraph
java.lang.Object
com.inductiveautomation.ignition.common.modules.ModuleDependencyGraph
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetectVersionMismatch
(String sourceModule) Inspects all module dependencies for any whose versions are wrong, and throws a DependencyVersionMismatchException if any are found.findDependentModules
(String moduleId) Find a list of the modules that depend on the given module, directly or indirectly.findRequiredModules
(String moduleId) Find a list of the modules that given module requires, directly or indirectly.getMissingDependencies
(String moduleId) Returns a collection of missing dependencies of this module or any of its present dependencies, or empty collection if nothing is missing.
-
Constructor Details
-
ModuleDependencyGraph
- Throws:
DependencyCycleException
-
-
Method Details
-
getMissingDependencies
Returns a collection of missing dependencies of this module or any of its present dependencies, or empty collection if nothing is missing. -
detectVersionMismatch
public ModuleDependencyGraph detectVersionMismatch(String sourceModule) throws DependencyVersionMismatchException Inspects all module dependencies for any whose versions are wrong, and throws a DependencyVersionMismatchException if any are found.- Returns:
- this for chained invocation style
- Throws:
DependencyVersionMismatchException
-
findDependentModules
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
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
- 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.
-