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.

      Attachments

        Issue Links

          Activity

            People

              pmuiratbleepbleep Pete Muir (Inactive)
              sdouglas1@redhat.com Stuart Douglas
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: