[cdi-dev] [JBoss JIRA] (CDI-212) Clarify BeanManager.createBean()

Jozef Hartinger (JIRA) jira-events at lists.jboss.org
Thu Aug 16 11:13:15 EDT 2012


    [ https://issues.jboss.org/browse/CDI-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12712060#comment-12712060 ] 

Jozef Hartinger commented on CDI-212:
-------------------------------------

What I probably had in mind when creating the issue was that the set that BeanAttributes.getStereotypes() returns might contain javax.decorator.Decorator (which is a stereotype) and therefore the container could take this as an indication that it should return a Decorator implementation.
                
> Clarify BeanManager.createBean()
> --------------------------------
>
>                 Key: CDI-212
>                 URL: https://issues.jboss.org/browse/CDI-212
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>          Components: Portable Extensions
>    Affects Versions: 1.1.EDR1
>            Reporter: Jozef Hartinger
>             Fix For: 1.1 (Proposed)
>
>
> It is unclear from the specification whether the BeanManager.createBean() method should ever return an implementation of the Decorator or Interceptor interface.
> Method parameters of the createBean() method provide all the necessary information for constructing a Decorator implementation. Therefore, IMHO the method should return a container-provided Decorator implementation if the set of stereotypes returned by BeanAttributes.getStereotypes contains javax.decorator.Decorator.
> On the other hand, Interceptors do not fit this model because the AnnotatedType of the bean class is not available to the method and using the reflection API to scan the bean class directly would not be consistent with the rest of the specification.

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