Tuesday, December 6, 2011

Re: Form factor support using GIN

Hi there, 

I am trying to follow your example but I get multiple double-bound: key errors for instance Double-bound: Key[type=MyActivity, annotation=[none]]. ActivityGinModule.configure(ActivityGinModule.java:9),ActivityGinModule.configure(ActivityGinModule.java:9) 

I've copied my SharedGinModule and DesktopGinModule

public class SharedGinModule extends AbstractGinModule {

@Override

protected void configure() {

  install(new ActivityGinModule());

  install(new MvpGinModule());

 }

}

public class DesktopGinModule extends AbstractGinModule {

@Override

protected void configure() {

install(new SharedGinModule());

install(new DesktopViewModule());

}

}

In my module entry point I do the following final GinjectorProvider injector = GWT.create(GinjectorProvider.class); up to this point everything is ok, and when stepping through the code I can see that the GinjectorProvider.class is an instannce of DesktopGinjectorProvider. I get errors when I try to injector.get().getResource()...

Any ideas?

Thanks,

George

-- "Please consider the environment before printing this e-mail"   The Newspaper Marketing Agency: Opening Up Newspapers:   http://www.nmauk.co.uk/   This e-mail and any attachments are confidential, may be legally privileged and are the property of NI Group  Limited (which is the holding company for the News International group, is registered in England under number 81701 and whose registered office is 3 Thomas More Square,  London E98 1XY, VAT number GB 243 8054 69),  on whose systems they were generated.  If you have received this e-mail in error, please notify  the sender immediately and do not use, distribute, store  or copy it in any way.  Statements or opinions in this e-mail or any attachment  are those of the author and are not necessarily agreed  or authorised by NI Group Limited or any member of its  group.  NI Group Limited may monitor outgoing or incoming  emails as permitted by law. It accepts no liability  for viruses introduced by this e-mail or attachments.  

--
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/-/hhJqJVgIqIgJ.
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