Here is my Gin module:
public class FooGinModule extends AbstractGinModule {
@Override
protected void configure() {
...
bind(ActivityManager.class).asEagerSingleton();
...
}
@Provides
@Singleton
public ActivityManager getActivityManager(EventBus eventBus, SimplePanel display,
ActivityMapper activityMapper) {
final ActivityManager activityManager = new ActivityManager(activityMapper, eventBus);
activityManager.setDisplay(display);
return activityManager;
}
}
When I try to gwt-compile, I get the following error:
[ERROR] No @Inject or default constructor found for class com.google.gwt.activity.shared.ActivityManager
Am I specifying the @Provides
method wrong?