[jbosstools-issues] [JBoss JIRA] (JBIDE-9722) Injection point annotated with @New should be resolved even if bean class does not belong to a bean archive.

Jaroslav Jankovič (Closed) (JIRA) jira-events at lists.jboss.org
Mon Oct 31 07:53:45 EDT 2011


     [ https://issues.jboss.org/browse/JBIDE-9722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jaroslav Jankovič closed JBIDE-9722.
------------------------------------



Verified in JBDS 5.0.0.v201110242253R-H40-M4. Closing Jira.
                
> Injection point annotated with @New should be resolved even if bean class does not belong to a bean archive.
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-9722
>                 URL: https://issues.jboss.org/browse/JBIDE-9722
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: CDI
>    Affects Versions: 3.3.0.M3
>            Reporter: Viacheslav Kabanovich
>            Assignee: Alexey Kazakov
>             Fix For: 3.3.0.M4
>
>
> See JSR-299 3.12. @New qualified beans.
> For each managed bean, and for each session bean, a second bean exists which:
> • has the same bean class,
> • has the same bean types,
> • has the same bean constructor, initializer methods and injected fields, and
> • has the same interceptor bindings.
> However, this second bean:
> • has scope @Dependent,
> • has a exactly one qualifier: @javax.enterprise.inject.New(X.class) where X is the bean class,
> • has no bean EL name,
> • has no stereotypes,
> • has no observer methods, producer methods or fields or disposer methods, and
> • is not an alternative, and
> • 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.
> This bean is called the @New qualified bean for the class X.
> Note that this second bean exists—and may be enabled and available for injection—even if the first bean is disabled.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jbosstools-issues mailing list