Uploaded image for project: 'Errai'
  1. Errai
  2. ERRAI-1068

Extend EnabledByProperty annotation to allow multiple conditions

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: master
    • Component/s: ErraiIOC
    • Labels:
      None

      Description

      Currently, it is only possible to use

      @EnabledByProperty
      

      to match if a system property contains a "true" value.
      Some other scenarios could be useful, such as defining a default value in case the system property is not set as well setting a matching value other than only "true".
      Ex:

      • Checking that a system property matches a specific value as "enabled" or "disabled".
      • Having it enabled by default in case the system property is not set.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  cristiano.nicolai Cristiano Nicolai
                  Reporter:
                  cristiano.nicolai Cristiano Nicolai
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: