Hi,
suggest the following field:
private @Driver @Inject Seat seat;
and the following bindings:
pBinder.bind(Seat.class).toClass(DefaultSeat.class);
pBinder.bind(Seat.class).annotatedWith(Driver.class).toClass(DriversSeat.class);
What would be the type of seat? I would hope for a DriversSeat, but that
assumes a priority of bindings, that I am unaware of. Is there something
like that?
Thanks,
Jochen
--
You received this message because you are subscribed to the Google Groups
"google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-guice/bf4be9b4-3d65-4ae9-85c4-3c72d3cf5519%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.