OpenWebBeans
  1. OpenWebBeans
  2. OWB-619

@New beans must only exist if there is at least one injection point for them

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.1
    • Fix Version/s: 1.1.2
    • Component/s: Core
    • Labels:
      None

      Description

      spec section 3.12 @New defines

      >For each managed bean, and for each session bean, a second bean exists which ....
      ...
      > is enabled, in the sense of Section 5.1.2, "Enabled and disabled beans", if and only if some other enabled bean has an injection point with the qualifier @New(X.class) where X is the bean class.

      Which means that we dont need to create a NewBean for each and every bean, but only for ones which gets used in an InjectionPoint somewhere!
      This can massively reduce the amount of needed beans and the mem consumption of OWB

        Activity

          People

          • Assignee:
            Mark Struberg
            Reporter:
            Mark Struberg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development