@Singleton public class DependencyCheckerImpl extends Object implements DependencyChecker
Constructor and Description |
---|
DependencyCheckerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
checkDependencies(Map<String,ModuleDefinition> moduleDefinitions)
Checks dependencies between the given modules, throws a ModuleDependencyException if there is
a dependency mismatch.
|
protected void |
checkSpecificDependency(ModuleDefinition checkedModule,
DependencyDefinition dependency,
Map<String,ModuleDefinition> moduleDefinitions) |
List<ModuleDefinition> |
sortByDependencyLevel(Map<String,ModuleDefinition> moduleDefinitions) |
public void checkDependencies(Map<String,ModuleDefinition> moduleDefinitions) throws ModuleDependencyException
DependencyChecker
checkDependencies
in interface DependencyChecker
moduleDefinitions
- a MapModuleDependencyException
public List<ModuleDefinition> sortByDependencyLevel(Map<String,ModuleDefinition> moduleDefinitions)
sortByDependencyLevel
in interface DependencyChecker
moduleDefinitions
- a Mapprotected void checkSpecificDependency(ModuleDefinition checkedModule, DependencyDefinition dependency, Map<String,ModuleDefinition> moduleDefinitions) throws ModuleDependencyException
ModuleDependencyException
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.