Can you post your binding?

You should be able to do this with something to the effect of:

bind(new TypeLiteral<UiHandlersStrategy<MyUiHandlers>(){})
  .to(...your impl);

-Fred

On Mon, Sep 20, 2010 at 5:10 PM, Christian Goudreau <
[email protected]> wrote:

> Humm I think my subject is weird... anyway :D
>
> Here's what I want to do:
>
>   @Inject
>
>   public MemberView(@ProviderUiHandler finalUiHandlersStrategy<MyUiHandlers> 
> providerUiHandlersStrategyImpl) {
> My error:
> 17:02:42.928 [ERROR] [apapul] No implementation bound for key
> Key[type=ca.ulaval.apapul.client.mvp.strategies.uihandlers.UiHandlersStrategy<ca.ulaval.apapul.client.core.member.MemberView$MyUiHandlers>,
> [email protected]]
>
> MyUiHandlers is also an interface binded by Gin/Guice. Using the
> implementation class instead the interface work, but I wanted to use the
> interface with an annotation.
>
> Btw, is this worth the pain ? That seem to be almost as if I was using
> the implementation class anyway...
>
> Thanks and cheers,
>
> --
> Christian Goudreau
> www.arcbees.com
>
>  --
> 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]<google-guice%[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.

Reply via email to