Thx Thomas,
"The activity has no dependency on the singleton/global event bus, and the
one passed to its start() method doesn't come from GIN; so what's the
problem?"
I think that's wrong in my case. ActivityManagers are provides this way in
my code:
@Provides
@Singleton
@Named("ContentArea")
public final ActivityManager getContentActivityManager(final
ContentMapper activityMapper, final EventBus eventBus) {
return new ActivityManager(activityMapper, eventBus);
}
The eventBus is provided
via bind(EventBus.class).to(SimpleEventBus.class).in(Singleton.class); At
the Moment i change the package the compilation fails for my activities
(another question is why new ActivityManager is accepting eventBus from
both packages).
Correct me if i am wrong: you suggest to give activity's start method the
old eventbus (but this one shouldn't be used). but because the activity
managers are calling the start method with their eventbus i have to provide
activitymanagers constructed with the old eventBus? (i don't really
understand the code you provided, is "injector.eventBus()" the old or the
new EventBus)
--
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/-/u3fw4247ziwJ.
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-web-toolkit?hl=en.