Propagate event to handlers

@param sfsRoom smartfox room object
@param sfsUser smartfox user object
774132
private void notifyHandlers(Room sfsRoom, User sfsUser) {
        ApiRoom apiRoom = AgentUtil.getRoomAgent(sfsRoom);
        ApiUser apiUser = AgentUtil.getUserAgent(sfsUser);
        for(RoomHandlerClass handler : handlers) {
            Object userAgent = checkUserAgent(handler, apiUser);
            if(!checkHandler(handler, apiRoom, userAgent))
                continue;
            Object instance = handler.newInstance();
            callHandleMethod(handler.getHandleMethod(), 
                    instance, apiRoom, userAgent);
        }
    }
1363758
@Override
    public void switchPlayerToSpectator(ApiBaseUser user) {
        try {
            room.switchPlayerToSpectator(CommandUtil.getSfsUser(user, api));
        } catch (SFSRoomException e) {
            throw new IllegalStateException(e);
        }
    }
704578
@Override
    public void handleServerEvent(ISFSEvent event) throws SFSException {
        User sfsUser = (User) event.getParameter(SFSEventParam.USER);
        Zone sfsZone = (Zone) event.getParameter(SFSEventParam.ZONE);
        ApiZone apiZone = getApiZone(sfsZone);
        notifyHandlers(apiZone, sfsUser);

    }
651911
function callAllEventHandlers(...fns) {
  return (event, ...args) =>
    fns.some(fn => {
      if (fn) {
        fn(event, ...args)
      }
      return (
        event.preventDownshiftDefault ||
        (event.hasOwnProperty('nativeEvent') &&
          event.nativeEvent.preventDownshiftDefault)
      )
    })
}
729737
private void fireRosterPresenceEvent(final Presence presence) {
        synchronized (rosterListenersAndEntriesLock) {
            for (RosterListener listener : rosterListeners) {
                listener.presenceChanged(presence);
            }
        }
    }
1336690
public static synchronized void sse(String url) {
        checkStarted();
        instance().endpoints.add(HandlerUtil.sse(url, null));
    }
88743
private void notifyHandlers(ApiUser apiUser) {
        for(ServerUserHandlerClass handler : serverUserEventHandler) {
            Object userAgent = checkUserAgent(handler, apiUser);
            ReflectMethodUtil.invokeHandleMethod(
                    handler.getHandleMethod(), 
                    handler.newInstance(), 
                    context, 
                    userAgent);
        }
    }
352171
public void setSystemEventHandler(final SystemEventHandler systemEventHandler) {
    if (systemEventSubscription != null) {
      systemEventSubscription.unsubscribe();
    }
    if (systemEventHandler != null) {
      systemEventSubscription = eventBus().get()
          .filter(evt -> evt.type().equals(EventType.SYSTEM))
          .subscribe(new Subscriber<CouchbaseEvent>() {
            @Override
            public void onCompleted() { /* Ignoring on purpose. */}

            @Override
            public void onError(Throwable e) { /* Ignoring on purpose. */ }

            @Override
            public void onNext(CouchbaseEvent evt) {
              systemEventHandler.onEvent(evt);
            }
          });
    }
  }
443748
function JssorSliderSwipeStartEventHandler(position, virtualPosition) {
    //position: real position of the carousel
    //virtualPosition: virtual position of the carousel

    var args = [position, virtualPosition];
    console.log(" args: " + args.join(","));
}
1128680
public void eventProcessingSuccessful(ActivityHandle ah,
			FireableEventType arg1, Object arg2, Address ad,
			ReceivableService arg4, int arg5) {
				
	}
1262904
public void setLinkSubstitutionHandler(String handlerClassName) {

        try {
            m_linkSubstitutionHandler = (I_CmsLinkSubstitutionHandler)Class.forName(handlerClassName).newInstance();
        } catch (Exception e) {
            // should never happen
            LOG.error(e.getLocalizedMessage(), e);
        }
    }
777256
@Override
    public void userEventTriggered(ChannelHandlerContext ctx, Object evt) {
        if (evt instanceof HttpServerUpgradeHandler.UpgradeEvent) {
            FullHttpRequest upgradedRequest = ((HttpServerUpgradeHandler.UpgradeEvent) evt).upgradeRequest();

            // Construct new HTTP Request
            HttpRequest httpRequest = new DefaultHttpRequest(
                    new HttpVersion(Constants.HTTP_VERSION_2_0, true), upgradedRequest.method(),
                    upgradedRequest.uri(), upgradedRequest.headers());

            HttpCarbonRequest requestCarbonMessage = setupCarbonRequest(httpRequest, this);
            requestCarbonMessage.addHttpContent(new DefaultLastHttpContent(upgradedRequest.content()));
            notifyRequestListener(this, requestCarbonMessage, 1);
        }
    }
1372957
function jsprojManager (location) {
    this.root = path.dirname(location);
    this.isUniversalWindowsApp = path.extname(location).toLowerCase() === '.projitems';
    this.projects = [];
    this.master = this.isUniversalWindowsApp ? new proj(location) : new jsproj(location);
    this.projectFolder = path.dirname(location); /* eslint new-cap : 0 */
    this.www = path.join(this.root, 'www');
    this.platformWww = path.join(this.root, 'platform_www');
}
547106
public void propagateMouseEventsToParent() {
        this.addEventHandler(MouseEvent.ANY, e -> {
            e.consume();
            this.getParent().fireEvent(e);
        });
    }
151291
static function notify($event_name, $parameters = [], $subject = null, $desc = null) {
        self::register($event_name, $desc);
        $event = new \sfEvent($subject, $event_name, $parameters);
        self::dispatcher()
            ->notify($event);
    }
571348
public void eventProcessingSuccessful(ActivityHandle activityHandle, FireableEventType fireableEventType,
            Object object, Address address, ReceivableService receivableService, int integer) {
        // not used
    }
87351
public static synchronized void initEventHandlerInstance(int maxEntries,
                                                           int flushPeriodMs)
  {
    if (eventHandler.get() == null)
    {
      eventHandler.set(new EventHandler(maxEntries, flushPeriodMs));
    }
    //eventHandler.startFlusher();
  }