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

Allow to disable parallel container support enforcement

XMLWordPrintable

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

      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.

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

                Created:
                Updated:
                Resolved: