[webbeans-issues] [JBoss JIRA] Updated: (WBRI-280) Support Just-In-Time Binding

Takeshi Kondo (JIRA) jira-events at lists.jboss.org
Wed Jun 17 13:05:57 EDT 2009


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

Takeshi Kondo updated WBRI-280:
-------------------------------

    Attachment: JustInTimeBindingTest.patch


> Support Just-In-Time Binding
> ----------------------------
>
>                 Key: WBRI-280
>                 URL: https://jira.jboss.org/jira/browse/WBRI-280
>             Project: Web Beans
>          Issue Type: Feature Request
>          Components: Simple Beans
>    Affects Versions: 1.0.0.PREVIEW1
>            Reporter: Takeshi Kondo
>            Assignee: Nicklas Karlsson
>         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/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the weld-issues mailing list