[weld-issues] [JBoss JIRA] Updated: (WELDX-125) Support Just-In-Time Binding

Pete Muir (JIRA) jira-events at lists.jboss.org
Fri Aug 6 13:02:49 EDT 2010


     [ https://jira.jboss.org/browse/WELDX-125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir updated WELDX-125:
----------------------------

    Component/s:     (was: Generic Beans)


> 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