All -
Given....
interface View ...
class EvenVew implements View {
@Inject Iterator<Number> source;
}
class OddView implements View {
@Inject Iterator<Number> source;
}
class MyNumbers implements Iterator<Number>...
class YourNumbers implements Iterator<Number>...
Now I have some service and I'd like to
* Inject a View which is an EvenView of MyNumbers
* Inject a View which is an OddView of YourNumbers
'annotatedWith' is the obvious (but partial) answer; with that I can
get Even or Odd easily enough, but I don't know how to push down
MyNumbers and YourNumbers.
I could be thinking too 'spring-like' and wiring everything by hand, I
guess. Thoughts?
Thanks
-darr
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---