Class CachedRuleMapper


  • public class CachedRuleMapper
    extends java.lang.Object
    A mapper from rule class names to rule instances for cached rules.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Rule getRuleForClass​(java.lang.String className)
      Finds a rule instance for the given rule class name
      void initialize​(RuleSets rs)
      Initialize the mapper with the given rulesets.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CachedRuleMapper

        public CachedRuleMapper()
    • Method Detail

      • getRuleForClass

        public Rule getRuleForClass​(java.lang.String className)
        Finds a rule instance for the given rule class name
        Parameters:
        className - The name of the rule class that generated the cache entry
        Returns:
        The requested rule
      • initialize

        public void initialize​(RuleSets rs)
        Initialize the mapper with the given rulesets.
        Parameters:
        rs - The rulesets from which to retrieve rules.