/** * Event Handler 事件处理程序 * * @param event The <code>Event</code> Event事件类型 * @param listener listener * @param originalEventClass originalEventClass */ protected void routeEventToListener( Event event, IListener listener, Class<?> originalEventClass) { if (originalEventClass.isInstance(event)) { listener.onHandle(event); } }
public Callback(IListener listener, Class<?> eventClass) { super(listener.getName()); this.listener = listener; this.eventClass = eventClass; }