Groovy Documentation

groovy.org.codenarc.ruleregistry
[Groovy] Class PropertiesFileRuleRegistry

java.lang.Object
  groovy.org.codenarc.ruleregistry.PropertiesFileRuleRegistry
All Implemented Interfaces:
RuleRegistry

class PropertiesFileRuleRegistry

Implementation of RuleRegistry that loads the rules from the 'codenarc-base-rules.properties' properties file.

Authors:
Chris Mair
See Also:
org.codenarc.tool.GenerateCodeNarcRulesProperties


Field Summary
static def PROPERTIES_FILE

 
Constructor Summary
PropertiesFileRuleRegistry()

 
Method Summary
Class getRuleClass(String ruleName)

Return the Rule Class for the specified name or else null

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

PROPERTIES_FILE

public static final def PROPERTIES_FILE


 
Constructor Detail

PropertiesFileRuleRegistry

PropertiesFileRuleRegistry()


 
Method Detail

getRuleClass

Class getRuleClass(String ruleName)
Return the Rule Class for the specified name or else null
Parameters:
ruleName - - the rule name
Returns:
the associated Rule Class or null if no Rule has been registered for the specified name


 

Groovy Documentation