Hello,

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));
        ....
        bind(IFoo156.class).toProvider(new
AdapterProvider<IFoo156>(Tags.FOO156));

I try to write this:

@ProvidedBy(AdapterProvider.class)
interface IFoo1 {
...
}

But it is not enough... So I though:

@Tag(Tags.FOO1)
@ProvidedBy(AdapterProvider.class)
interface IFoo1 {
...
}

But I don't see how to configure Guice to make this ok...

Any ideas?

Cheers,
Anthony

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to