151617181920212223
this.type = type; } public void handle(ActionHandler<T> handler) { if (this.handler != null) { throw new DuplicateActionHandlerException(this.handler, handler, type); } this.handler = handler; }