[cdi-dev] [JBoss JIRA] Commented: (CDI-14) Add instance() method to BeanManager

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


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

Pete Muir commented on CDI-14:
------------------------------

This has been one of the biggest complaints I have heard about the CDI spec so far (actually Mark, you're the only person I've heard so far say we shouldn't make this a single call).

A couple of specific comments:

* BM is primarily intended as an SPI for providing access to CDI in unmanaged instances, so if we need to add better support for providing injection in unmanaged instances (see above) then BM is the right place to do it.
* instance() is indeed sufficient as Instance() allows fluent selection anyway.

Anyone else have an opinion on this?

> Add instance() method to BeanManager
> ------------------------------------
>
>                 Key: CDI-14
>                 URL: https://issues.jboss.org/browse/CDI-14
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>          Components: Resolution
>    Affects Versions: 1.0
>            Reporter: Pete Muir
>             Fix For: 1.1 (Proposed)
>
>
> Currently obtaining a contextual reference is quite a complex operation, adding a method like:
> Instance<Object> instance();
> would make it much easier.

--
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