hudson.plugins.testabilityexplorer.report
Class CostDetailBuilder

java.lang.Object
  extended by hudson.plugins.testabilityexplorer.report.CostDetailBuilder
All Implemented Interfaces:
DetailBuilder<Statistic>

public class CostDetailBuilder
extends java.lang.Object
implements DetailBuilder<Statistic>

Helper class to return detail object for details in the report.

Author:
reik.schatz

Constructor Summary
CostDetailBuilder()
           
 
Method Summary
 java.lang.Object buildDetail(java.lang.String link, hudson.model.AbstractBuild<?,?> build, java.util.Collection<Statistic> statistics)
          Returns a detail from the specified statistics.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CostDetailBuilder

public CostDetailBuilder()
Method Detail

buildDetail

public java.lang.Object buildDetail(java.lang.String link,
                                    hudson.model.AbstractBuild<?,?> build,
                                    java.util.Collection<Statistic> statistics)
Returns a detail from the specified statistics. The detail will be looked up using the given link. The following details are supported right now:

class. returns the first ClassCostDetail matching what is behind .class

Specified by:
buildDetail in interface DetailBuilder<Statistic>
Parameters:
link - the dynamic link part as sent in by Stapler
statistics - Collection
Returns:
Object or null


Copyright © 2008. All Rights Reserved.