you're right, Thomas told me the same.
I haven't seen that the eventBus given as parameter (which is a resettableeventBus) is created from the eventBus declared and binded in gin!
Tks
Le mardi 4 juin 2013 14:28:50 UTC+2, Jens a écrit :
-- Le mardi 4 juin 2013 14:28:50 UTC+2, Jens a écrit :
You can add "final" to the method parameter: Activity.start(final AcceptsOneWidget panel, final EventBus eventBus).Actually you should not inject an additional event bus into your activity (unless you really know what you are doing and you absolutely need it). You should always use the one that is provided by Activity.start() because this EventBus instance will be cleaned up automatically once your activity stops.-- J.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment