[cdi-dev] [JBoss JIRA] (CDI-92) Allow injection of Bean object for a bean

Jozef Hartinger (Reopened) (JIRA) jira-events at lists.jboss.org
Wed Nov 16 06:30:41 EST 2011


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

Jozef Hartinger reopened CDI-92:
--------------------------------



Reopening, since multiple implications are not handled by this change.

1.) The qualifiers (@Intercepted, @Decorated) are missing from the API and from the specification document.

2.) Similarly to the Injection point metadata section, the Bean metadata section should name possible invalid scenarios and required the container to treat them as a definition error. These include:
* Interceptor<?> injection point in a non-interceptor bean
* @Intercepted Bean<?> injection point in a non-interceptor bean
* Decorator<?> injection point in a non-decorator bean
* @Decorated Bean<?> injection point in a non-decorator bean

3.) The spec should define what happens in the following scenatio:
{code:JAVA}
class Foo {
   @Inject Bean<Bar> metadata;
}
{code}
Should the container validate the generic type of a bean metadata injection point? Should the abovementioned example be treated as a definiton error?

4.) The spec should perhaps explicitly state that it is possible to inject bean metadata into a disposer method and that this metadata always refers to the producer field/method that created the instance being destroyed.
                
> Allow injection of Bean object for a bean
> -----------------------------------------
>
>                 Key: CDI-92
>                 URL: https://issues.jboss.org/browse/CDI-92
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>          Components: Beans
>    Affects Versions: 1.0
>            Reporter: Pete Muir
>            Assignee: Pete Muir
>             Fix For: 1.1.EDR1
>
>


--
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 cdi-dev mailing list