incubator-s4-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthieu Morel <>
Subject dynamic dispatch of events based on runtime type of events
Date Tue, 11 Oct 2011 10:30:34 GMT

I added a mechanism for dynamically generating proxies that dispatch events
to the right processing method based on the runtime type of the event.

I reused some code from the previous version of S4, with the following
- the OverloadDispatcherGenerator uses ASM instead of BCEL; this removes a
dependency by the way
- both input and output events can be dispatched

Consequences on the actual codebase:
- there is no more need to implement processInputEvent or processOutputEvent
method if they are not needed
- you may have several of them, overloaded with different Event types (as in
the previous version of S4)
- these methods must be public

Code is here:

Leo, can you review that and merge it, so we can already use it? I did a
pull request, so that should be straightforward.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message