info.magnolia.module.model.reader
Interface DependencyChecker

All Known Implementing Classes:
DependencyCheckerImpl

public interface DependencyChecker

Utility class to check dependencies between instances of ModuleDescriptors and sort them according to their dependencies.

Version:
$Revision: $ ($Author: $)
Author:
gjoseph

Method Summary
 void checkDependencies(Map<String,ModuleDefinition> moduleDefinitions)
          Checks dependencies between the given modules, throws a ModuleDependencyException if there is a dependency mismatch.
 List<ModuleDefinition> sortByDependencyLevel(Map<String,ModuleDefinition> moduleDefinitions)
           
 

Method Detail

checkDependencies

void checkDependencies(Map<String,ModuleDefinition> moduleDefinitions)
                       throws ModuleDependencyException
Checks dependencies between the given modules, throws a ModuleDependencyException if there is a dependency mismatch.

Parameters:
moduleDefinitions - a Map where the key is the module name.
Throws:
ModuleDependencyException

sortByDependencyLevel

List<ModuleDefinition> sortByDependencyLevel(Map<String,ModuleDefinition> moduleDefinitions)
Parameters:
moduleDefinitions - a Map where the key is the module name.


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.