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

Takeshi Kondo (JIRA) jira-events at lists.jboss.org
Sun Jun 14 08:20:56 EDT 2009

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

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 
public class Counter{
  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