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

InstanceImpl - do not prefetch all resolved beans for Instance<Object> with no qualifiers

    XMLWordPrintable

Details

    Description

      InstanceImpl currently resolves all the matching beans beforehand. This is very often unnecessary because users rarely use Instance<Object>, e.g. to iterate over all accessible beans (might be a huge set and although we usually cache the resolution there are other "expensive" operations).

      This could improve the performance of org.jboss.weld.manager.api.WeldManager.instance() and javax.enterprise.inject.spi.BeanManager.createInstance() respectively.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: