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 {}
@FerrariQualifierclass DefaultSportCar implements SportCar {}
What I would like to inject:
@Injectprivate Car car; //inject DefaultCar
@Inject
@FerrariQualifierprivate Car ferrari; //inject DefaultSportCar
@Injectprivate SportCar sportCar;//inject DefaultSportCar
How can I do that?
--
Otávio Gonçalves de Santana
twitter:
http://twitter.com/otaviojava
site: *http://about.me/otaviojava <
http://about.me/otaviojava>*