Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-546

Constant for default observer priority

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Minor Minor
    • 2.0 .Final
    • None
    • None
    • None

      Currently we use:

          @Override
          public default int getPriority() {
              return javax.interceptor.Interceptor.Priority.APPLICATION + 500;
          };
      
      

      It would be nice to have the value stored as a constant e.g.:

      int DEFAULT_PRIORITY=javax.interceptor.Interceptor.Priority.APPLICATION + 500;
      

      so that other code can reference it.

              mkouba@redhat.com Martin Kouba
              rhn-engineering-jharting Jozef Hartinger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: