You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Mark Struberg (Resolved) (JIRA)" <ji...@apache.org> on 2011/10/13 20:43:11 UTC
[jira] [Resolved] (OWB-619) @New beans must only exist if there is
at least one injection point for them
[ https://issues.apache.org/jira/browse/OWB-619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Struberg resolved OWB-619.
-------------------------------
Resolution: Fixed
Talked with other EG folks. We really only need to/must create a @NewBean if it is used in an injectionpoint, but _not_ for each and every bean around.
Our internal mem consumption dropped drastically since we only need to store half the number of Beans now...
> @New beans must only exist if there is at least one injection point for them
> -----------------------------------------------------------------------------
>
> Key: OWB-619
> URL: https://issues.apache.org/jira/browse/OWB-619
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.1.1
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Fix For: 1.1.2
>
>
> 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
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira