org.sonar.core.rule
Class DefaultRuleFinder

java.lang.Object
  extended by org.sonar.core.rule.DefaultRuleFinder
All Implemented Interfaces:
BatchComponent, RuleFinder, ServerComponent

public class DefaultRuleFinder
extends Object
implements RuleFinder


Constructor Summary
DefaultRuleFinder(DatabaseSessionFactory sessionFactory)
           
 
Method Summary
 Rule find(RuleQuery query)
           
 Collection<Rule> findAll(RuleQuery query)
           
 Rule findByKey(String repositoryKey, String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRuleFinder

public DefaultRuleFinder(DatabaseSessionFactory sessionFactory)
Method Detail

findByKey

public Rule findByKey(String repositoryKey,
                      String key)
Specified by:
findByKey in interface RuleFinder

find

public Rule find(RuleQuery query)
Specified by:
find in interface RuleFinder

findAll

public Collection<Rule> findAll(RuleQuery query)
Specified by:
findAll in interface RuleFinder


Copyright © 2009-2010 SonarSource. All Rights Reserved.