]
Stuart Douglas commented on WELDX-125:
--------------------------------------
Is this still necessary?
If I understand the proposal correctly it looks like it is very similar to @New.
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: