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

Allow Extensions to specify the annotations that they are interested in

    XMLWordPrintable

    Details

      Description

      Currently portable extensions that wish to look for a specific annotation have to look through all availible classes in the ProcessAnnotatatedType event, which is quite inefficient. It would be good if extensions could do something like:

      public void processAnnotatedType(@Observes @RequireAnnotations(

      {@Unwraps.class}

      ) ProcessAnnotatedType pat)

      This could allow the container to take advantage of annotation indexing to improve boot time performance, as well as reducing uneeded processing in the observer.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  pmuir Pete Muir
                  Reporter:
                  swd847 Stuart Douglas
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: