[ 
https://issues.apache.org/jira/browse/OWB-619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115401#comment-13115401
 ] 

Arne Limburg commented on OWB-619:
----------------------------------

The spec says that this bean exists, so it should be returned by 
BeanManager.getBeans(...)
However if no injection point exists, it is not active so it should be filtered 
out by BeanManager.resolve(...)
So imho the creation of such bean does not depend on the existence of an 
injection point.
Just the result of BeanManager.resolve(...) does.
                
> @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

        

Reply via email to