Hey, I have a question about heritage and CDI.Given two interfaces:
- Car interface
- SportCar that extends Car
interface Car{ } interface SportCar extends Car{ } class DefaultCar implements Car { } @FerrariQualifier class DefaultSportCar implements SportCar { } What I would like to inject: @Inject private Car car; //inject DefaultCar @Inject @FerrariQualifier private Car ferrari; //inject DefaultSportCar @Inject private SportCar sportCar;//inject DefaultSportCarHow can I do that?--Otávio Gonçalves de Santana
_______________________________________________
cdi-dev mailing list
cdi-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/cdi-dev
Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (http://www.apache.org/licenses/LICENSE-2.0.html ). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.