hudson.plugins.checkstyle
Class MavenCheckStyleResultAction

java.lang.Object
  extended by hudson.plugins.analysis.core.AbstractResultAction<CheckStyleResult>
      extended by hudson.plugins.checkstyle.CheckStyleResultAction
          extended by hudson.plugins.checkstyle.MavenCheckStyleResultAction
All Implemented Interfaces:
hudson.maven.AggregatableAction, hudson.maven.MavenAggregatedReport, hudson.model.Action, hudson.model.HealthReportingAction, hudson.model.ModelObject, hudson.plugins.analysis.core.ResultAction<CheckStyleResult>, hudson.plugins.analysis.util.ToolTipProvider, org.kohsuke.stapler.StaplerProxy

public class MavenCheckStyleResultAction
extends CheckStyleResultAction
implements hudson.maven.AggregatableAction, hudson.maven.MavenAggregatedReport

A CheckStyleResultAction for native maven jobs. This action additionally provides result aggregation for sub-modules and for the main project.

Author:
Ulli Hafner

Constructor Summary
MavenCheckStyleResultAction(hudson.model.AbstractBuild<?,?> owner, hudson.plugins.analysis.core.HealthDescriptor healthDescriptor, java.lang.String defaultEncoding)
          Creates a new instance of MavenCheckStyleResultAction.
MavenCheckStyleResultAction(hudson.model.AbstractBuild<?,?> owner, hudson.plugins.analysis.core.HealthDescriptor healthDescriptor, java.lang.String defaultEncoding, CheckStyleResult result)
          Creates a new instance of MavenCheckStyleResultAction.
 
Method Summary
 hudson.maven.MavenAggregatedReport createAggregatedAction(hudson.maven.MavenModuleSetBuild build, java.util.Map<hudson.maven.MavenModule,java.util.List<hudson.maven.MavenBuild>> moduleBuilds)
          
 java.lang.Class<? extends hudson.maven.AggregatableAction> getIndividualActionType()
          
 hudson.model.Action getProjectAction(hudson.maven.MavenModuleSet moduleSet)
          
 void update(java.util.Map<hudson.maven.MavenModule,java.util.List<hudson.maven.MavenBuild>> moduleBuilds, hudson.maven.MavenBuild newBuild)
          Called whenever a new module build is completed, to update the aggregated report.
 
Methods inherited from class hudson.plugins.checkstyle.CheckStyleResultAction
getDescriptor, getDisplayName, getMultipleItemsTooltip, getSingleItemTooltip
 
Methods inherited from class hudson.plugins.analysis.core.AbstractResultAction
addModule, createAggregatedResult, createResult, getBuild, getBuildHealth, getHealthDescriptor, getIconFileName, getOwner, getResult, getTarget, getTooltip, getToolTipProvider, getUrlName, isSuccessful, setResult, updateBuildHealth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
 

Constructor Detail

MavenCheckStyleResultAction

public MavenCheckStyleResultAction(hudson.model.AbstractBuild<?,?> owner,
                                   hudson.plugins.analysis.core.HealthDescriptor healthDescriptor,
                                   java.lang.String defaultEncoding)
Creates a new instance of MavenCheckStyleResultAction.

Parameters:
owner - the associated build of this action
healthDescriptor - health descriptor to use
defaultEncoding - the default encoding to be used when reading and parsing files

MavenCheckStyleResultAction

public MavenCheckStyleResultAction(hudson.model.AbstractBuild<?,?> owner,
                                   hudson.plugins.analysis.core.HealthDescriptor healthDescriptor,
                                   java.lang.String defaultEncoding,
                                   CheckStyleResult result)
Creates a new instance of MavenCheckStyleResultAction.

Parameters:
owner - the associated build of this action
healthDescriptor - health descriptor to use
result - the result in this build
defaultEncoding - the default encoding to be used when reading and parsing files
Method Detail

createAggregatedAction

public hudson.maven.MavenAggregatedReport createAggregatedAction(hudson.maven.MavenModuleSetBuild build,
                                                                 java.util.Map<hudson.maven.MavenModule,java.util.List<hudson.maven.MavenBuild>> moduleBuilds)

Specified by:
createAggregatedAction in interface hudson.maven.AggregatableAction

getProjectAction

public hudson.model.Action getProjectAction(hudson.maven.MavenModuleSet moduleSet)

Specified by:
getProjectAction in interface hudson.maven.MavenAggregatedReport

getIndividualActionType

public java.lang.Class<? extends hudson.maven.AggregatableAction> getIndividualActionType()

Specified by:
getIndividualActionType in interface hudson.maven.MavenAggregatedReport

update

public void update(java.util.Map<hudson.maven.MavenModule,java.util.List<hudson.maven.MavenBuild>> moduleBuilds,
                   hudson.maven.MavenBuild newBuild)
Called whenever a new module build is completed, to update the aggregated report. When multiple builds complete simultaneously, Hudson serializes the execution of this method, so this method needs not be concurrency-safe.

Specified by:
update in interface hudson.maven.MavenAggregatedReport
Parameters:
moduleBuilds - Same as MavenModuleSet.getModuleBuilds() but provided for convenience and efficiency.
newBuild - Newly completed build.


Copyright © 2004-2011. All Rights Reserved.