protected final < U extends GenericEvent > void bind ( EventBus eventBus , List < HandlerRegistration > registrations , Class < U > type , GenericEventHandler handler ) { registrations . add ( eventBus . addHandler ( GenericEventType . getTypeOf ( type ) , handler ) ) ; }
Registers the given handler for the given event class on the given event bus . Factored out into a method here instead of generated directly in order to simplify the generated code and save a little space .