since version 10 guava offers com.google.common.eventbus.EventBus – a generic pub-sub facility. It is not marked as GWT-compatible in the source. I wonder whether it’s possible to plug some custom code pre-processing into gwt compiler to map this (partially annotation/reflection-based) API into javascript.
AFAIK there’re some other custom extensions added into GWT java-to-js compiler, like com.google.gwt.i18n.client.ConstantsWithLookup and quite likely some others. I’d seen some experimental compiler extensions to add partial support for reflection/annotations, but not sure they’re required in case we handle a specific set of annotations and simple class->methods->annotation listing is required (not a complete reflection API).
Maybe someone knows whether GWT-enabling this component is planned by guava dev team?
Thanks,
Anton
This is probably more appropriate for guava-discuss than for StackOverflow, but Guava team member here: no, we’re not planning on it.