Annotation Interface Rule


@Inherited @Retention(RUNTIME) @Target(TYPE) public @interface Rule
Annotation to mark a class as a rule.
Author:
Mahmoud Ben Hassine ([email protected])
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The rule description.
    The rule name which must be unique within a rules registry.
    int
    The rule priority.
  • Element Details

    • name

      String name
      The rule name which must be unique within a rules registry.
      Returns:
      The rule name
      Default:
      "rule"
    • description

      String description
      The rule description.
      Returns:
      The rule description
      Default:
      "description"
    • priority

      int priority
      The rule priority.
      Returns:
      The rule priority
      Default:
      2147483646