http://docs.jboss.org/cdi/spec/2.0/cdi-spec.html#primitive_types_and_null_values

"For the purposes of typesafe resolution and dependency injection, primitive 
types and their corresponding wrapper types in the package java.lang are 
considered identical and assignable. If necessary, the container performs 
boxing or unboxing when it injects a value to a field or parameter of primitive 
or wrapper type."

LieGrue,
strub

> Am 30.07.2017 um 10:25 schrieb Romain Manni-Bucau <[email protected]>:
> 
> Hmm, cdi does? was pretty sure injections had Object constraint. Do I get it 
> wrong?
> 
> 
> Romain Manni-Bucau
> @rmannibucau |  Blog | Old Blog | Github | LinkedIn | JavaEE Factory
> 
> 2017-07-30 10:06 GMT+02:00 Mark Struberg <[email protected]>:
> CDI supports primitives. So I'm not quite sure what's the point?
> 
> LieGrue,
> strub
> 
> 
> > Am 30.07.2017 um 09:26 schrieb Romain Manni-Bucau <[email protected]>:
> >
> >
> > Alternative would be to make cdi support primitive, agree there is no 
> > blocker at all to do it but then for libs i think we need to limit to the 
> > most constrained impl, cdi here.
> >
> 
> 

Reply via email to