Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2247

Allow to disable parallel container support enforcement

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Won't Do
    • Minor
    • None
    • 2.4.0.Final
    • Java SE Support
    • None

    Description

      Right now, org.jboss.weld.environment.se.Weld static initializer always performs SingletonProvider reset if RegistrySingletonProvider is not used.

      Add ENFORCE_PARALLEL_CONTAINER_SUPPORT (maybe some better name?) system property, true by default. Log a warning if false and RegistrySingletonProvider not used (multiple parallel Weld instances not supported).

      We can also consider adding SingletonProvider.isParallelContainerSupportSupported() so that it's possible to skip the warning for providers which should also work.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: