Ok, thanks! 2008/12/5 [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> > > > On Dec 5, 4:36 am, "Anthony MULLER" <[EMAIL PROTECTED]> wrote: > > Is there a way to write this using annotation? > > bind(IFoo1.class).toProvider(new > AdapterProvider<IFoo1>(Tags.FOO1)); > > bind(IFoo2.class).toProvider(new > AdapterProvider<IFoo2>(Tags.FOO2)); > No. > > If your provider itself takes constructor arguments, you'll have to > write the bind() statements. The @ProvidedBy annotation only works for > the simple case. > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
