[cdi-dev] [JBoss JIRA] (CDI-315) Allow BeanManager methods, such as getBeans in AfterDeploymentValidation observers

Pete Muir (JIRA) jira-events at lists.jboss.org
Mon Feb 25 14:29:56 EST 2013


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

Pete Muir commented on CDI-315:
-------------------------------

Pull at https://github.com/jboss/cdi/pull/168
                
> Allow BeanManager methods, such as getBeans in AfterDeploymentValidation observers
> ----------------------------------------------------------------------------------
>
>                 Key: CDI-315
>                 URL: https://issues.jboss.org/browse/CDI-315
>             Project: CDI Specification Issues
>          Issue Type: Bug
>          Components: Beans
>            Reporter: Marek Schmidt
>             Fix For: 1.1.PFD
>
>
> CDI-274 which disallows some BeanManager methods during application initialization is too strict. 
> Mark's original suggestion for CDI-274 contained a very important part "...before the AfterDeploymentValidation phase". AfterDeploymentValidation observers would be quite useless if we can't use BeanManager.getBeans in them IMHO, and I think there is no reason to disallow BeanManager methods in AfterDeploymentValidation, so we should allow them there...
> So maybe something like:
> "IllegalStateException if called during application initialization before the AfterDeploymentValidation phase"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the cdi-dev mailing list