Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-619

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.1
    • 1.1.2
    • Core
    • 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

      Attachments

        Activity

          People

            struberg Mark Struberg
            struberg Mark Struberg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: