info.magnolia.module.model.reader
Class DependencyCheckerImpl
java.lang.Object
info.magnolia.module.model.reader.DependencyCheckerImpl
- All Implemented Interfaces:
- DependencyChecker
@Singleton
public class DependencyCheckerImpl
- extends Object
- implements DependencyChecker
Default implementation of DependencyChecker.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DependencyCheckerImpl
public DependencyCheckerImpl()
checkDependencies
public void checkDependencies(Map<String,ModuleDefinition> moduleDefinitions)
throws ModuleDependencyException
- Description copied from interface:
DependencyChecker
- Checks dependencies between the given modules, throws a ModuleDependencyException if there is
a dependency mismatch.
- Specified by:
checkDependencies
in interface DependencyChecker
- Parameters:
moduleDefinitions
- a Map where the key is the module name.
- Throws:
ModuleDependencyException
sortByDependencyLevel
public List<ModuleDefinition> sortByDependencyLevel(Map<String,ModuleDefinition> moduleDefinitions)
- Specified by:
sortByDependencyLevel
in interface DependencyChecker
- Parameters:
moduleDefinitions
- a Map where the key is the module name.
checkSpecificDependency
protected void checkSpecificDependency(ModuleDefinition checkedModule,
DependencyDefinition dependency,
Map<String,ModuleDefinition> moduleDefinitions)
throws ModuleDependencyException
- Throws:
ModuleDependencyException
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.