--
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/3193454b-b4c7-428b-8a19-3e730601868f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I have asked this before but I am still looking for an alternative to the GWT SimpleEventBus which will work with J2CL.
And gwteventbinder could quite easily be ported to an annotation processor.
With a small modification to EventBinder (adding an inherited annotation), one could write an annotation processor that's fully backwards-compatible with the current approach. The GWT generator could be changed to simply return the class generated by the annotation processor as a migration step before you replace the GWT.create() with an explicit "new", something like:interface MyEventBinder extends EventBinder<Xxx> {}private static final MyEventBinder eventBinder = new Xxx_MyEventBinderImpl();
(one big difference of annotation processors is that they're invoked even if the code wouldn't compile, e.g. applying the annotation to a type whereas it only targets methods, or if the value of the annotation properties don't have the correct type, such as @EventHandler(42); with a GWT generator, those errors would be caught earlier in the process so the generator is immune to them).