Appends a <code>CacheMissHandler</code> to the internal list of handlers.

@param handler
the <code>CacheMissHandler</code> to be added.
509565
public void addHandler(CacheMissHandler handler) {
		if(handler != null) {
			logger.debug("adding handler of class '{}'", handler.getClass());
			handlers.add(handler);
		}
	}
1146611
public JsHandlerRegistration addGeometryMergeStopHandler(final GeometryMergeStopHandler handler) {
		org.geomajas.plugin.editing.client.merge.event.GeometryMergeStopHandler h;
		h = new org.geomajas.plugin.editing.client.merge.event.GeometryMergeStopHandler() {

			public void onGeometryMergingStop(GeometryMergeStopEvent event) {
				org.geomajas.plugin.editing.jsapi.client.merge.event.GeometryMergeStopEvent e;
				e = new org.geomajas.plugin.editing.jsapi.client.merge.event.GeometryMergeStopEvent();
				handler.onGeometryMergeStop(e);
			}
		};
		HandlerRegistration registration = delegate.addGeometryMergeStopHandler(h);
		return new JsHandlerRegistration(new HandlerRegistration[] { registration });
	}
85945
@Override
    public T addHandlers(ArchiveEventHandler... handlers) {
       for (ArchiveEventHandler handler : handlers) {
          this.handlers.add(handler);
       }
       return covariantReturn();
    }
618814
public void addResourceHandler(Class<? extends NamedResource> clazz, JavaMailAttachmentResourceHandler handler) {
		map.put(clazz, handler);
	}
8164
public RedwoodConfiguration rootHandler(final LogRecordHandler handler){
    tasks.add(new Runnable(){ public void run(){ Redwood.appendHandler(handler); } });
    Redwood.appendHandler(handler);
    return this;
  }
571916
def addHandler(self, handler):
        
        self._handlers.append(handler)
        self.inner.addHandler(handler)
519024
public HandlerRegistration addChangedHandler(final ChangedHandler handler) {
		return enabledForm.addItemChangedHandler(new ItemChangedHandler() {

			public void onItemChanged(ItemChangedEvent event) {
				handler.onChanged(new ChangedEvent(EnableToggleFormItem.this.getJsObj()));
			}
		});

	}
1058479
public B handler(ChannelHandler handler) {
        if (handler == null) {
            throw new NullPointerException("handler");
        }
        this.handler = handler;
        return self();
    }
758372
public synchronized void addHandler(String handlerId) {
		// If it is first async handler subscribed, then create the main buffer
		if (ringBuffer == null) {
			ringBuffer = new Buffer<Object>(capacity);
		}
		/*
		 * Every new Asynchronous handler starts off with all events from EMQ.
		 * So we write all EMQ messages directly to RingBuffer
		 */

		if (earlyMessageQueue != null && earlyMessageQueue.size() != 0) {
			for (Object message : earlyMessageQueue.toArray()) {
				if (message != null) {
					ringBuffer.add(message);
				}
			}
		}

		handlerEventMap.putIfAbsent(handlerId, new HandlerStats(handlerId, sourceId));
		Tr.event(tc, "Added Asynchronous Handler: " + handlerId);
	}
900307
def _registerHandler(self, handler):
        
        self._logger.addHandler(handler)
        self._handlers.append(handler)
731535
protected void addRequestHandler(I_CmsRequestHandler handler) {

        if (handler == null) {
            return;
        }
        String[] names = handler.getHandlerNames();
        for (int i = 0; i < names.length; i++) {
            String name = names[i];
            if (m_requestHandlers.get(name) != null) {
                CmsLog.INIT.error(Messages.get().getBundle().key(Messages.LOG_DUPLICATE_REQUEST_HANDLER_1, name));
                continue;
            }
            m_requestHandlers.put(name, handler);
            if (CmsLog.INIT.isInfoEnabled()) {
                CmsLog.INIT.info(
                    Messages.get().getBundle().key(
                        Messages.INIT_ADDED_REQUEST_HANDLER_2,
                        name,
                        handler.getClass().getName()));
            }
        }
    }
1165774
@Export
	public JsHandlerRegistration addDispatchStoppedHandler(final DispatchStoppedHandler handler) {
		HandlerRegistration registration = GwtCommandDispatcher.getInstance().addDispatchStoppedHandler(
				new org.geomajas.gwt.client.command.event.DispatchStoppedHandler() {

					public void onDispatchStopped(DispatchStoppedEvent event) {
						handler.onDispatchStopped(new org.geomajas.plugin.jsapi.client.event.DispatchStoppedEvent());
					}
				});
		return new JsHandlerRegistration(new HandlerRegistration[] { registration });
	}
689446
public JsHandlerRegistration addGeometryEditInsertHandler(final GeometryEditInsertHandler handler) {
		org.geomajas.plugin.editing.client.event.GeometryEditInsertHandler h;
		h = new org.geomajas.plugin.editing.client.event.GeometryEditInsertHandler() {

			public void onGeometryEditInsert(GeometryEditInsertEvent event) {
				org.geomajas.plugin.editing.jsapi.client.event.GeometryEditInsertEvent e;
				List<GeometryIndex> indices = event.getIndices();
				e = new org.geomajas.plugin.editing.jsapi.client.event.GeometryEditInsertEvent(event.getGeometry(),
						indices.toArray(new GeometryIndex[indices.size()]));
				handler.onGeometryEditInsert(e);
			}
		};
		HandlerRegistration registration = delegate.addGeometryEditInsertHandler(h);
		return new JsHandlerRegistration(new HandlerRegistration[] { registration });
	}
777915
public JsHandlerRegistration addGeometryMergeAddedHandler(final GeometryMergeAddedHandler handler) {
		org.geomajas.plugin.editing.client.merge.event.GeometryMergeAddedHandler h;
		h = new org.geomajas.plugin.editing.client.merge.event.GeometryMergeAddedHandler() {

			public void onGeometryMergingAdded(GeometryMergeAddedEvent event) {
				org.geomajas.plugin.editing.jsapi.client.merge.event.GeometryMergeAddedEvent e;
				e = new org.geomajas.plugin.editing.jsapi.client.merge.event.GeometryMergeAddedEvent(
						event.getGeometry());
				handler.onGeometryMergeAdded(e);
			}
		};
		HandlerRegistration registration = delegate.addGeometryMergeAddedHandler(h);
		return new JsHandlerRegistration(new HandlerRegistration[] { registration });
	}
299175
public HandlerRegistration addInputHandler(JQMInputHandler handler) {
	    if (handler == null) return null;
	    return JQMHandlerRegistration.registerJQueryHandler(new WidgetHandlerCounter() {
            @Override
            public int getHandlerCountForWidget(GwtEvent.Type<?> type) {
                return getHandlerCount(type);
            }
        }, this, handler, JQMComponentEvents.INPUT,
        JQMEventFactory.getType(JQMComponentEvents.INPUT, JQMInputHandler.class));
	}
357641
public static void registerMessageHandler(Class<? extends AVIMMessage> clazz,
                                            MessageHandler<?> handler) {
    Set<MessageHandler> handlerSet = new CopyOnWriteArraySet<>();

    Set<MessageHandler> set = messageHandlerRepository.putIfAbsent(clazz, handlerSet);
    if (set != null) {
      handlerSet = set;
    }
    handlerSet.add(handler);
  }
445573
public JsHandlerRegistration addGeometryEditMoveHandler(final GeometryEditMoveHandler handler) {
		org.geomajas.plugin.editing.client.event.GeometryEditMoveHandler h;
		h = new org.geomajas.plugin.editing.client.event.GeometryEditMoveHandler() {

			public void onGeometryEditMove(GeometryEditMoveEvent event) {
				List<GeometryIndex> indices = event.getIndices();
				handler.onGeometryEditMove(new org.geomajas.plugin.editing.jsapi.client.event.GeometryEditMoveEvent(
						event.getGeometry(), indices.toArray(new GeometryIndex[indices.size()])));
			}
		};
		HandlerRegistration registration = delegate.addGeometryEditMoveHandler(h);
		return new JsHandlerRegistration(new HandlerRegistration[] { registration });
	}