I'd probably author a Provider that takes, as ctr arts, a set of types / keys that it uses to request Sets of such types from the injector to concatenate and return as a Set<SuperType>. Annotate the binding of either the multibinder or this provider to distinguish the Set<P> that only contains P instances from this concatenated Set<P>.
Fred On Mar 18, 2011 3:23 PM, "Stoeoeof" <[email protected]> wrote: > Hey, > I am currently developing a plugin based project, heavily depending on > the multibinding feature. Is there any way to "chain" multibindings? > Let's say, class A extends class B and I have a multibinding set up on > A and another set up on B. Now I want all As being added to the > binding of B. Is there a simple way for doing this? > > Thanks! > > -- > 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. > -- 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.
