[webbeans-issues] [JBoss JIRA] Updated: (WBRI-280) Support Just-In-Time Binding
Pete Muir (JIRA)
jira-events at lists.jboss.org
Sat Jul 25 14:00:29 EDT 2009
[ https://jira.jboss.org/jira/browse/WBRI-280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pete Muir updated WBRI-280:
---------------------------
Assignee: (was: Nicklas Karlsson)
> 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
> Fix For: 1.1.0.BETA1
>
> 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