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

    XMLWordPrintable

Details

    • Sub-task
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 3.0.0.Final, 2.4.4.Final
    • 3.2
    • Weld SPI

    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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mkouba@redhat.com Martin Kouba
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: