]
Pete Muir updated WBRI-280:
---------------------------
Fix Version/s: 1.1.0.BETA1
Takeshi, I'm putting this in the 1.1.0 bucket just because we need to concentrate on
the spec for now - I like the idea, but we should discuss on the webbeans-dev list.
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
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: