Allow configuration of event handlers with Event subclasses as well as event type strings