org.sonar.plugins.design.batch
Class ProjectDsmDecorator

java.lang.Object
  extended by org.sonar.plugins.design.batch.ProjectDsmDecorator
All Implemented Interfaces:
CheckProject, Decorator, BatchComponent, BatchExtension, Extension

public class ProjectDsmDecorator
extends Object
implements Decorator

For performance reasons, this decorator is currently limited to matrix between modules. Squid is optimized for cycle detections (better hashCode and equals methods of SourceCode classes than Resource).


Constructor Summary
ProjectDsmDecorator(SonarIndex index)
           
 
Method Summary
 void decorate(Resource resource, DecoratorContext context)
           
 boolean shouldExecuteOnProject(Project project)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectDsmDecorator

public ProjectDsmDecorator(SonarIndex index)
Method Detail

shouldExecuteOnProject

public boolean shouldExecuteOnProject(Project project)
Specified by:
shouldExecuteOnProject in interface CheckProject

decorate

public void decorate(Resource resource,
                     DecoratorContext context)
Specified by:
decorate in interface Decorator
Parameters:
resource - resource that is currently decorated, equivalent of context.getResource()


Copyright © 2009-2012 SonarSource. All Rights Reserved.