[weld-issues] [JBoss JIRA] Commented: (WELDX-125) Support Just-In-Time Binding
Stuart Douglas (JIRA)
jira-events at lists.jboss.org
Mon Sep 20 05:31:28 EDT 2010
[ https://jira.jboss.org/browse/WELDX-125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12551779#action_12551779 ]
Stuart Douglas commented on WELDX-125:
--------------------------------------
Is this still necessary?
If I understand the proposal correctly it looks like it is very similar to @New.
> Support Just-In-Time Binding
> ----------------------------
>
> Key: WELDX-125
> URL: https://jira.jboss.org/browse/WELDX-125
> Project: Weld Extensions
> Issue Type: Feature Request
> Reporter: Takeshi Kondo
> Assignee: Takeshi Kondo
> Attachments: JustInTimeBinding.patch, JustInTimeBindingTest.patch
>
>
> In guice , If a type is needed but there isn't an explicit binding, the injector will attempt to create a Just-In-Time binding.(http://code.google.com/p/google-guice/wiki/JustInTimeBindings)
> However, If a type is needed but there isn't an explicit binding, WebBeans's BeanManager throws UnsatisfiedResolutionException.
> If a type is concret class, BeanManager can create and inject a instance.
> I want to use injection as instance creation. because of keeping simplicity of code.
> Writing beans.xml is laborious.
> for instance
> --------
> @ApplicationScoped
> public class Counter{
> @Current
> java.util.concurrent.atomic.AtomicInteger atomicInteger;
> ...
> -------
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the weld-issues
mailing list