[cdi-dev] [JBoss JIRA] Commented: (CDI-14) Add instance() method to BeanManager
Arne Limburg (JIRA)
jira-events at lists.jboss.org
Sun May 8 16:02:18 EDT 2011
[ https://issues.jboss.org/browse/CDI-14?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12600537#comment-12600537 ]
Arne Limburg commented on CDI-14:
---------------------------------
In the CDI-project I currently work on, this three calls (BeanManager#getBeans, BeanManager#resolve and BeanManager#getReference) where the first thing a developer wrote a BeanManagerUtil#getReference(BeanManager, T, Annotation...) for. So I think, it are just three lines, but it are three lines that really should be doable in one line. So a BeanManager#getReference(T, Annotation...) or a BeanManager#instance() would be really desirable.
BTW: instance() is enough since one could call instance().select(...), which would be a one-liner, too.
> 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