-
Notifications
You must be signed in to change notification settings - Fork 28
Possible to add support of EventBus#addHandlerToSource(...)? #5
Comments
@gokdogan, what do you think of this? I'm not sure how people usually use addHandlerToSource - if it's normal for all handlers in the class to be registered on the same source, this seems like it would be a fairly straightforward extension of the API. We could also do something @UiHandler-like where @eventhandler is parameterized with field names as strings or similar, though I don't think that would fit quite as nicely in this case. |
Use of addHandlerToSource is very uncommon in Google so it is hard to generalize but based on my sample set and expectations it is unlikely that source-per-class will be useful to many people. |
Sounds good to me. July, would you mind describing exactly how you use addHandlerToSource in your application? |
I hope to use like below, so I can write one event instead of many(BookSaveEvent, UserSaveEvent...):
|
Hi:
Possible to add a interface method in EventBinder like below:
So we can take use of EventBus#addHandlerToSource(...)?
The text was updated successfully, but these errors were encountered: