[cdi-dev] [JBoss JIRA] Commented: (CDI-14) Add instance() method to BeanManager
Mark Struberg (JIRA)
jira-events at lists.jboss.org
Wed May 11 13:06:19 EDT 2011
[ https://issues.jboss.org/browse/CDI-14?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601438#comment-12601438 ]
Mark Struberg commented on CDI-14:
----------------------------------
I'd keep it in the BeanManager. Having to code 1 static singleton lookup is ugly enough.
Btw, please NOT JNDI again. JNDI really sucks! The JNDI spec is a splitter bomb cross over the whole JCP. You will find 20++ JSRs which define name spaces + behaviour, etc. Parts got cleaned up in EE6 (or was it 5?), but it's still broken and non-portable across AppServers to big degrees.
An example: try to register a Seam2/Hibernate datasource which works in different EE Servers without changing the JNDI name... This is just broken...
Also: there are a lot environments which either not have a JNDI environment at all, or it's readonly.
Just my 0.02 ...
> 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