Thanks, I figured out how to use the getBindings(TypeValue) but it is not too smart. I'll file a request for improvement...
Erik. > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] > On Behalf Of [EMAIL PROTECTED] > Sent: December-08-08 8:54 PM > To: google-guice > Subject: Re: find all instances of a specific type (guice 2) > > > On Dec 8, 12:13 pm, ErikNRC <[EMAIL PROTECTED]> wrote: > > Is there any way to find all bindings for a specific type? > > For instance, lets assume I have class A implements Factory<U>, class > > B implements Factory<V> and then I want to find Factory types. > > I tried findBindingsByType but it doesn't seem to do any of that. > > You might be able to call getBindings(), and filter out the ones whose > keys don't match your criteria. > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
