That would probably work.  I'm using this in a custom module (very similar 
to the RealMultibinder module), and I'll be requesting these objects when 
my @Inject @Toolable initialize(Injector) method is called.  I'm assuming 
the getDependencies() -> Injector followed by getDependencies() -> read 
dependencies pattern works for any provider with HasDependencies?

Thanks,
Daniel

On Thursday, May 10, 2012 12:31:19 PM UTC-4, Alen Vrečko wrote:
>
> Why don't you use injector#getAllBindings()? What is the use case? 
>
> Cheers 
> Alen 
>
> On May 10, 4:25 am, Daniel Murphy <[email protected]> wrote: 
> > Is it possible to get the set of all types with a given binding 
> annotation? 
> >  I would need to access this set from an injector.  My first thought is 
> to 
> > load them into a multiset with a type listener, but it doesn't look like 
> I 
> > can do any bindings from a type listener.  Can I somehow make multiset 
> > bindings from a visitor?  Can I add visitors from inside a module to the 
> > whole dependency hierarchy? 
> > 
> > Thanks, 
> > Daniel

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-guice/-/JmXdcHYUDmgJ.
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.

Reply via email to