Hi, Whats the best way to create a car object in the following scenario
class CarImpl { final int horses; final Engine engine public CarImpl(Engine e, int h) {...} } bind(Engine.class).to(DieselEngine.class); bind(Car.class).to(CarImpl.class); //How can i tell my CarImpl to use which int? Another scenario, what if the DieselEngine's constructor looks something like this: class DieselEngine { DieselEngine(int volume) {...} } I know, the above class structure might not be the best from an OO perspective, im just trying to figure out the best way to use guice. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "google-guice" group. To post to this group, send email to google-guice@googlegroups.com To unsubscribe from this group, send email to google-guice+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-guice?hl=en -~----------~----~----~----~------~----~------~--~---