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

Define Extension notification rules for shared libraries

XMLWordPrintable

    • Icon: Clarification Clarification
    • Resolution: Obsolete
    • Icon: Major Major
    • TBD
    • 1.1.EDR
    • Portable Extensions
    • None

      Consider an EAR file with a shared xy.JAR file in the EARs ./lib folder with an

      @EnterpriseApplicationScoped class X
      and a
      @RequestScoped class Y

      The EAR also contains 2 web applications WebAppA and WebAppB.
      WebAppA has ExtensionA in it's WEB-INF/classes and WebAppB has ExtensionB in it's classes both with a public void met(@Observes ProcessAnnotatedType pat) and each modifying the AnnotatedType.

      What should happen here? Will there be 2 Bean<T> for X and 2 for Y? (one Bean for each WebApp)? or will X and Y not trigger a ProcessAnnotatedType for the extensions defined in the webapps (but only for Extensions defined in the shared ear lib)?

              Unassigned Unassigned
              struberg Mark Struberg (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: