@ Override public void onNext ( final T event ) { final EventHandler < T > handler = ( EventHandler < T > ) map . get ( event . getClass ( ) ) ; if ( handler == null ) { throw new WakeRuntimeException ( "No event " + event . getClass ( ) + " handler" ) ; } handler . onNext ( event ) ; }
Invokes a specific handler for the event class type if it exists .