Class ModuleOrderUtil
java.lang.Object
com.espertech.esper.common.client.module.ModuleOrderUtil
Module ordering utility.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModuleOrder
getModuleOrder
(Collection<Module> modules, Set<String> deployedModules, ModuleOrderOptions options) Compute a deployment order among the modules passed in considering their uses-dependency declarations.
-
Constructor Details
-
ModuleOrderUtil
public ModuleOrderUtil()
-
-
Method Details
-
getModuleOrder
public static ModuleOrder getModuleOrder(Collection<Module> modules, Set<String> deployedModules, ModuleOrderOptions options) throws ModuleOrderException Compute a deployment order among the modules passed in considering their uses-dependency declarations.The operation also checks and reports circular dependencies.
Pass in @{link ModuleOrderOptions} to customize the behavior if this method. When passing no options or passing default options, the default behavior checks uses-dependencies and circular dependencies.
- Parameters:
modules
- to determine ordering foroptions
- operation options or null for default optionsdeployedModules
- deployed modules- Returns:
- ordered modules
- Throws:
ModuleOrderException
- when any module dependencies are not satisfied
-