Annotation Type RuleConfig


@Target(FIELD) @Retention(RUNTIME) public @interface RuleConfig
The @RuleConfig annotation is exclusively used for testing purposes to identify configuration names when a rule contains multiple Configs.

Usage Example:

 @RuleConfig(value = "FILTER")
 public static final ExpandDisjunctionForJoinInputsRule
   EXPAND_FILTER_DISJUNCTION_LOCAL =
       ExpandDisjunctionForJoinInputsRule.Config.FILTER.toRule();
 @RuleConfig(value = "JOIN")
 public static final ExpandDisjunctionForJoinInputsRule
   EXPAND_JOIN_DISJUNCTION_LOCAL =
       ExpandDisjunctionForJoinInputsRule.Config.JOIN.toRule();
 

Key Characteristics:

  • Test-scoped annotation (not used in production code)
  • Required when a rule class has multiple Configs
  • Annotation value must match the static variable that holds the Config
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details