[cdi-dev] [JBoss JIRA] Commented: (CDI-23) Allow BeanManager to be resolved as though you were in another bean archive

Pete Muir (JIRA) jira-events at lists.jboss.org
Mon May 9 10:37:18 EDT 2011


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

Pete Muir commented on CDI-23:
------------------------------

Yes, I think it's fairly clear and obvious how you get Extension instances (this is wrong in Weld right now btw ;-). However given that the shared library cannot see the classes in the War, it should not be possible to resolve beans defined by classes in the war from the extension. However sometimes you do need to do this from an extension, hence this feature request.

BTW I'm not really in love with this soln to the problem, need to think if there are any others.

> Allow BeanManager to be resolved as though you were in another bean archive
> ---------------------------------------------------------------------------
>
>                 Key: CDI-23
>                 URL: https://issues.jboss.org/browse/CDI-23
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>          Components: Portable Extensions, Resolution
>    Affects Versions: 1.0
>            Reporter: Pete Muir
>             Fix For: 1.1 (Proposed)
>
>
> Currently it's not possible to access beans as though you were in another bean manager, something that is useful for extensions to be able to do. For example, if I want to create a facade over the ELResolver, or access a particular configuration bean.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the cdi-dev mailing list