info.magnolia.module.model.reader
Class DependencyCheckerImpl

java.lang.Object
  extended by info.magnolia.module.model.reader.DependencyCheckerImpl
All Implemented Interfaces:
DependencyChecker

public class DependencyCheckerImpl
extends java.lang.Object
implements DependencyChecker

Default implementation of DependencyChecker.

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

Constructor Summary
DependencyCheckerImpl()
           
 
Method Summary
 void checkDependencies(java.util.Map<java.lang.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, java.util.Map<java.lang.String,ModuleDefinition> moduleDefinitions)
           
 java.util.List<ModuleDefinition> sortByDependencyLevel(java.util.Map<java.lang.String,ModuleDefinition> moduleDefinitions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyCheckerImpl

public DependencyCheckerImpl()
Method Detail

checkDependencies

public void checkDependencies(java.util.Map<java.lang.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 java.util.List<ModuleDefinition> sortByDependencyLevel(java.util.Map<java.lang.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,
                                       java.util.Map<java.lang.String,ModuleDefinition> moduleDefinitions)
                                throws ModuleDependencyException
Throws:
ModuleDependencyException


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.