>
> my problem is that i use the event bus within some activities outside of
> start(..) and there i always should use the bindary-One.
>
Why should you? Assuming you only have one global event bus, the one
provided by the start() method and the injected one are basically the same.
The one provided by start() is just a wrapper around your global event bus
obtained via injection (the one you gave the ActivityManager). Every method
of this wrapper is delegated to your global event bus.
Its totally fine to store the event bus and also use it in other activity
methods.
Activity.start(...., EventBus eventBus) {
this.eventBus = eventBus;
this.eventBus.addHandler(....);
}
Sure if you store it the activity has an "old" import statement as the
start() method provides an "old" event bus. But on the day GWT kicks the
old event bus you can simply run a global search and replace on your java
files to correct the imports (class name is the same)
-- J.
--
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/-/NEQ_6llIvUEJ.
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.