[ 
https://issues.apache.org/jira/browse/WICKET-7080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17777971#comment-17777971
 ] 

ASF GitHub Bot commented on WICKET-7080:
----------------------------------------

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)
   
   
   




> [Events] make default events delivery machinery pluggable and roll usable 
> annotation based one
> ----------------------------------------------------------------------------------------------
>
>                 Key: WICKET-7080
>                 URL: https://issues.apache.org/jira/browse/WICKET-7080
>             Project: Wicket
>          Issue Type: Improvement
>          Components: events
>            Reporter: Ernesto Reinaldo Barreiro
>            Assignee: Ernesto Reinaldo Barreiro
>            Priority: Major
>             Fix For: 9.16.0, 10.0.0-M3
>
>
> [Events] make default events delivery machinery pluggable and roll usable 
> annotation based one



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to