info.magnolia.module.model.reader
Class DependencyCheckerImpl

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

@Singleton
public class DependencyCheckerImpl
extends Object
implements DependencyChecker

Default implementation of DependencyChecker.


Constructor Summary
DependencyCheckerImpl()
           
 
Method Summary
 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)
           
 
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(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.