[
https://issues.jboss.org/browse/CDI-700?page=com.atlassian.jira.plugin.sy...
]
Martin Kouba commented on CDI-700:
----------------------------------
Note that {{BeanManager.getReference()}} and {{BeanManager.getInjectableReference()}} are
not allowed during {{AfterBeanDiscovery}} either. And I think it's for a good reason.
At this time an extension can still affect the resolution. Thus the result of
{{BeanManager.createInstance().select(Foo.class)}} during {{AfterBeanDiscovery}} might be
different than the result in runtime.
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)