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

Drop ProcessModule.getAnnotatedTypes()

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 1.1.PFD
    • 1.1.PRD
    • Portable Extensions
    • None
    • Release Notes

      With @WithAnnotations in place it is now possible for extensions to indicate with fine granularity which container lifecycle events it is interested in and thus not to harm performance that much if the CDI implementation is efficient.

      Therefore, I don't like the ProcessModule.getAnnotatedTypes() method because:

      1.) There is no granularity. If extensions start to use it inefficiently it will always harm performance heavily.
      2.) I am not convinced this method is needed. It was not present in CDI 1.0. The only benefit of the method is that it allows for an extension to get an idea where a given AnnotatedType is comming from. There are other more efficient ways of exposing the same information. If we really need to do this we should probably introduce an abstraction over a bean archive (e.g. a Module object) and add a getModule() method to ProcessAnnotatedType.

              pmuiratbleepbleep Pete Muir (Inactive)
              rhn-engineering-jharting Jozef Hartinger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: