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 DefaultSportCar


How can I do that?

--
Otávio Gonçalves de Santana