reiern70 commented on PR #682: URL: https://github.com/apache/wicket/pull/682#issuecomment-1773386608
> https://github.com/wicketstuff/core/tree/master/annotationeventdispatcher-parent @martin-g I'm aware of that work. This PR is 2 things 1. Make "default" event delivery plug-able. This means replacing it by something else (or disabling it) 2. Some simple event annotation based events delivery. Where you can get protected or private or public methods injected with an event, ``` @OnEvent(XXX.class) protected onXXX(IEvent<XXX> event) { } ``` This allows to still work with event and programmatically cancel it. or ``` @OnEvent(XXX.class) protected onXXX(XXX payload) { } ``` will both work. No restrictions on XXX are imposed. IMHO, 1. would be nice to have in wicket. As for 2. I can understand can be implemented in many different ways. 3. This approach does not require a component listener and only marked classes are scanned (by annotation or implementing an interface) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
