[cdi-dev] [JBoss JIRA] Commented: (CDI-14) Add instance() method to BeanManager
Pete Muir (JIRA)
jira-events at lists.jboss.org
Thu May 12 04:09:18 EDT 2011
[ https://issues.jboss.org/browse/CDI-14?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601579#comment-12601579 ]
Pete Muir commented on CDI-14:
------------------------------
Yes as previously commented I was saying simply that if we made it available outside of a managed object it would be via the same mechanisms that we use for all other artifacts from CDI you can look up like this (i.e. currently BM). I'm not in love with the idea that we expose Instance directly, as I think requiring extension authors to write:
{code}
Foo foo = beanManager.dynamic().select(Foo.class).get();
{code}
(or whatever else this method get's called) is not that onerous given this is extension authors only.
With hindsight I would have preferred to split up BeanManager more than was done in 1.0 but we can't got back and do that now!
> 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