Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2422 Revisit Weld SPI so that integrators are not required to depend on Weld internals
  3. WELD-2413

@Dependent bean instance created through javax.enterprise.inject.spi.CDI not always destroyed during shutdown

    Details

    • Type: Sub-task
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0.Final, 2.4.4.Final
    • Fix Version/s: 3.2
    • Component/s: Weld SPI
    • Labels:

      Description

      The lifecycle of @Dependent instances created through javax.enterprise.inject.spi.CDI is not well defined. In fact, the spec does not even define the lifecycle of javax.enterprise.inject.spi.CDI.

      However, it would make sense to destroy such instances during shutdown. This works in Weld SE. But for other environments we should provide some guidelines or maybe some SPI and helpers. Currently, it's not possible to reuse the logic provided by Weld core easily. For instance, WildFly integration depends on org.jboss.weld.AbstractCDI and other Weld internals.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  mkouba Martin Kouba
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated: