[cdi-dev] [JBoss JIRA] (CDI-202) Clarify when BeanManager.createBeanAttributes(AnnotatedMember) returns an alternative

Jozef Hartinger (Created) (JIRA) jira-events at lists.jboss.org
Tue Dec 13 11:27:15 EST 2011


Clarify when BeanManager.createBeanAttributes(AnnotatedMember) returns an alternative
-------------------------------------------------------------------------------------

                 Key: CDI-202
                 URL: https://issues.jboss.org/browse/CDI-202
             Project: CDI Specification Issues
          Issue Type: Clarification
          Components: Beans
    Affects Versions: 1.1.EDR1
            Reporter: Jozef Hartinger
             Fix For: 1.1 (Proposed)


Currently, a producer field/method is an alternative if it is annotated with @Alternative or an alternative stereotype or the class declaring the field/method is annotated this way. However, when the BeanManager.createBeanAttributes(AnnotatedMember) method is called, the container has no access to the bean that declares the member. Therefore, the specification should clarify whether the container
* should examine the AnnotatedType for @Alternative or alternative stereotypes
* should try to infer the declaring bean (probably not possible since multiple beans may exist, each of them possibly modified in the ProcessBeanAttributes phase, etc.)
* should make an assumption (e.g. the bean that declares the returned BeanAttributes is always assumed not to be an alternative)

--
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