[cdi-dev] [JBoss JIRA] (CDI-681) Spec doesn't talk about BeanConfigurator.read method

Matej Novotny (JIRA) issues at jboss.org
Thu Jan 12 02:34:00 EST 2017


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

Matej Novotny commented on CDI-681:
-----------------------------------

Also, the spec doesn't say anything about what happens when you:
* First add a stereotype which defines a scope (like {{@Model}})
* Then you set the scope via `scope(..)` method


> Spec doesn't talk about BeanConfigurator.read method
> ----------------------------------------------------
>
>                 Key: CDI-681
>                 URL: https://issues.jboss.org/browse/CDI-681
>             Project: CDI Specification Issues
>          Issue Type: Bug
>            Reporter: Tomas Remes
>            Priority: Blocker
>             Fix For: 2.0 .Final
>
>
> Spec doesn't mention this method which could be confusing e.g with following (recently added) rule:
> {quote}
> If a BeanConfigurator has no scope specified via the BeanConfigurator.scope() method, the Default Scope rules apply.
> {quote}
> When you use this {{read}} method then it makes sense to copy scope from original AnnotatedType (current Weld behaviour) so I would reword this e.g to:
> {quote}
> If a BeanConfigurator has no scope specified via the BeanConfigurator.scope() method or BeanConfigurator is not initialized with one of its read methods, the Default Scope rules apply.
> {quote}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the cdi-dev mailing list