[
https://issues.jboss.org/browse/CDI-232?page=com.atlassian.jira.plugin.sy...
]
Jozef Hartinger edited comment on CDI-232 at 8/16/12 8:08 AM:
--------------------------------------------------------------
I doubt there is an implementation that would be following this. What can be implied from
the spec is that if you obtain the Bean<?> object for the built-in Instance bean and
call Bean.getTypes() you should get huge set of Instance<X> and Provider<X>
where X is every possible Java type that matches "2.2.1. Legal bean types".
I think that this would not even be a finite set most of the time so typesafe resolution
cannot clearly work this way for the Instance bean.
was (Author: jharting):
I doubt there is an implementation that would be following this. What can be implied
from the spec says is that if you obtain the Bean<?> object for the built-in
Instance bean and call Bean.getTypes() you should get huge set of Instance<X> and
Provider<X> where X is every possible Java type that matches "2.2.1. Legal bean
types".
I think that this would not even be a finite set most of the time so typesafe resolution
cannot clearly work this way for the Instance bean.
Relax requirements for built-in Instance
----------------------------------------
Key: CDI-232
URL:
https://issues.jboss.org/browse/CDI-232
Project: CDI Specification Issues
Issue Type: Clarification
Affects Versions: 1.1.EDR1
Reporter: Martin Kouba
Fix For: TBD
5.6.2. The built-in Instance
{quote}
The container must provide a built-in bean with:
* Instance<X> and Provider<X> for every legal bean type X in its set of bean
types,
* every qualifier type in its set of qualifier types,
{quote}
This type/qualifier requirements seem to be too strict. Maybe we should omit these and
instead force implementation to satisfy every injection point for every legal bean type
and corresponding qualifiers found in application... or something like that. I'm not
sure about the wording.
By the way Weld (2.0.0.Alpha2) does not fulfil these requirements at the moment.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira