Sunday, August 26, 2012

Re: Gin module binding using annotatedWith and AsyncProvider



On Sunday, August 26, 2012 1:43:09 PM UTC-4, Thomas Broyer wrote:
You should ask on https://groups.google.com/d/forum/google-gin as the GWT Compiler is not involved in these decisions, only the GIN generator.

BTW, what's the error? Does it work if you don't use an AsyncProvider? (direct injection, or through a Provider)

And as a workaround / alternative, I suppose you could use a "@Special Provider<DiSecondary>" and an explicit GWT.runAsync.


I'll repost the original question there.

In the meantime:

1. It works fine without the AsyncProvider.

2. The error the compiler gives is:
[ERROR] No implementation bound for "Key[type=com.x.dep_inj.client.DiSecondary, annotation=@com.x.dep_inj.client.Async]" and an implicit binding cannot be created because the type is annotated.
3. Thanks for the suggestion about the Provider. I had tried something along those lines, but couldn't figure out a way to get the callback to it. But, I've got a few more ideas on that now that are worth trying.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/awUQpKosoBsJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment