org.sonar.core.components
Class DefaultMetricFinder

java.lang.Object
  extended by org.sonar.core.components.DefaultMetricFinder
All Implemented Interfaces:
BatchComponent, MetricFinder, ServerComponent
Direct Known Subclasses:
CacheMetricFinder

public class DefaultMetricFinder
extends Object
implements MetricFinder


Constructor Summary
DefaultMetricFinder(DatabaseSessionFactory sessionFactory)
           
 
Method Summary
protected  Collection<Metric> doFindAll()
           
 Collection<Metric> findAll()
           
 Collection<Metric> findAll(List<String> metricKeys)
           
 Metric findById(int id)
           
 Metric findByKey(String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMetricFinder

public DefaultMetricFinder(DatabaseSessionFactory sessionFactory)
Method Detail

findById

public Metric findById(int id)
Specified by:
findById in interface MetricFinder

findByKey

public Metric findByKey(String key)
Specified by:
findByKey in interface MetricFinder

findAll

public Collection<Metric> findAll(List<String> metricKeys)
Specified by:
findAll in interface MetricFinder

findAll

public Collection<Metric> findAll()
Specified by:
findAll in interface MetricFinder

doFindAll

protected Collection<Metric> doFindAll()


Copyright © 2009-2011 SonarSource. All Rights Reserved.