[
https://issues.apache.org/jira/browse/OWB-619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115305#comment-13115305
]
Arne Limburg commented on OWB-619:
----------------------------------
>From reading the spec you are right. But I am wondering, if this change would
>break existing code, since @New is a qualifier, it could be used in
>BeanManager.getBeans or Instance.select... which would change behavior (i.e.
>not return any bean) then.
Should we add a special handling for the @New qualifier in the injection
resolver, too?
> @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