[JBoss JIRA] (CDI-700) BeanManager.createInstance() shouldn't be allowed before AfterDeploymentValidation

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[JBoss JIRA] (CDI-700) BeanManager.createInstance() shouldn't be allowed before AfterDeploymentValidation

JIRA issues@jboss.org

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

Matej Novotny commented on CDI-700:
-----------------------------------

I, on the other hand, fully agree.
Current state doesn't make sense and this issue looks like a mere overlook in the spec/doc.

{{BeanManager.getReference}} should have the same limitations as {{BeanManager.createInstance}} as they can be used in similar manner.
I would be weird if you could use one but were prohibited from using the other to achieve the same goal.
After all {{BeanManger.createInstance}} is a sort of shorcut from having to create creational context, bean attributes, bean itself and then getting a reference.

> BeanManager.createInstance() shouldn't be allowed before AfterDeploymentValidation
> ----------------------------------------------------------------------------------
>
>                 Key: CDI-700
>                 URL: https://issues.jboss.org/browse/CDI-700
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>            Reporter: Antoine Sabot-Durand
>
> Spec doesn't say anything about it and javadoc allows its usage in {{AfterBeanDiscovery}} observers.
> The method should also be listed in section 11.3 related to {{BeanManager}}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
_______________________________________________
cdi-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/cdi-dev

Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.