Examples of EventHandler


Examples of org.osgi.service.event.EventHandler

    /**
     * Send the event.
     */
    public void sendEvent(final Event event)
    {
        final EventHandler handlerService = this.obtain();
        if (handlerService == null)
        {
            return;
        }

        try
        {
            handlerService.handleEvent(event);
        }
        catch (final Throwable e)
        {
            // The spec says that we must catch exceptions and log them:
            LogWrapper.getLogger().log(
View Full Code Here

Examples of org.osgi.service.event.EventHandler

        final AtomicReference<Event> completionEventRef = new AtomicReference<Event>();
        final AtomicReference<Event> installEventRef = new AtomicReference<Event>();
        final CountDownLatch cdl = new CountDownLatch(1);

        EventHandler eventHandler = new EventHandler()
        {
            @Override
            public void handleEvent(Event event)
            {
                if (Constants.EVENTTOPIC_COMPLETE.equals(event.getTopic()))
View Full Code Here

Examples of org.osgi.service.event.EventHandler

        final AtomicReference<Event> completionEventRef = new AtomicReference<Event>();
        final AtomicReference<Event> installEventRef = new AtomicReference<Event>();
        final CountDownLatch cdl = new CountDownLatch(2);
       
        EventHandler eventHandler = new EventHandler()
        {
            @Override
            public void handleEvent(Event event)
            {
                if (Constants.EVENTTOPIC_COMPLETE.equals(event.getTopic()))
View Full Code Here

Examples of org.osgi.service.event.EventHandler

        final AtomicReference<Event> completionEventRef = new AtomicReference<Event>();
        final AtomicReference<Event> uninstallEventRef = new AtomicReference<Event>();
        final CountDownLatch cdl = new CountDownLatch(2);
       
        EventHandler eventHandler = new EventHandler()
        {
            @Override
            public void handleEvent(Event event)
            {
                if (Constants.EVENTTOPIC_COMPLETE.equals(event.getTopic()))
View Full Code Here

Examples of org.osgi.service.event.EventHandler

        final AtomicReference<Event> completionEventRef = new AtomicReference<Event>();
        final AtomicReference<Event> uninstallEventRef = new AtomicReference<Event>();
        final CountDownLatch cdl = new CountDownLatch(2);

        EventHandler eventHandler = new EventHandler()
        {
            @Override
            public void handleEvent(Event event)
            {
                if (Constants.EVENTTOPIC_COMPLETE.equals(event.getTopic()))
View Full Code Here

Examples of org.osgi.service.event.EventHandler

  private boolean              isLastThemeDarker = false;

  @Execute
  public void onExecute() {
    eventBroker.subscribe(IThemeEngine.Events.THEME_CHANGED,
        new EventHandler() {
          public void handleEvent(Event event) {
            ITheme currentTheme = (ITheme) event
                .getProperty(IThemeEngine.Events.THEME);
            // if (!prefDarker.getBoolean(
            // THEME_DARKER_PREF_THEMEENABLED, false))
View Full Code Here

Examples of org.rioproject.event.EventHandler

            EventDescriptor clientEventDesc = ProvisionMonitorEvent.getEventDescriptor();
            getEventTable().put(clientEventDesc.eventID, eventProcessor.getMonitorEventHandler());

            EventDescriptor failureEventDesc = ProvisionFailureEvent.getEventDescriptor();
            /* EventHandler for ProvisionFailureEvent consumers */
            EventHandler failureHandler = new DispatchEventHandler(failureEventDesc, config);
            getEventTable().put(failureEventDesc.eventID, failureHandler);

            registerEventAdapters();

            provisioner = new ServiceProvisioner(config, getEventProxy(), failureHandler, provisionWatch);
View Full Code Here

Examples of org.uengine.kernel.EventHandler

      eventMessagePayload.setTriggerTracingTag(triggerActivityTracingTag);
      mainProcessDefinition.fireMessage("event", mainProcessInstance, eventMessagePayload);
     
      //get the initiated sub process instance
      EventHandler[] ehs = getEventHandlersInAction(mainInstanceId);
      EventHandler theEventHandler = null;
      for(int i=0; i<ehs.length; i++){
        if(ehs[i].getName().equals(eventName)){
          theEventHandler = ehs[i];
          break;
        }
      }
     
      Activity handlerActivity = theEventHandler.getHandlerActivity();
     
      HumanActivity humanActivity = null;
     
      if(handlerActivity instanceof SubProcessActivity){
        SubProcessActivity subProcessActivity = (SubProcessActivity)theEventHandler.getHandlerActivity();
        Vector idVt = subProcessActivity.getSubprocessIds(mainProcessInstance);
       
        String subInstanceId = (String)idVt.get(0);
       
        ProcessInstance subProcessInstance = getInstance(subInstanceId);
View Full Code Here

Examples of org.vaadin.teemu.clara.binder.annotation.EventHandler

            DataSource dataSource = method.getAnnotation(DataSource.class);
            if (dataSource != null) {
                bindDataSource(mapper, controller, method, dataSource);
            }

            EventHandler eventHandler = method
                    .getAnnotation(EventHandler.class);
            if (eventHandler != null) {
                bindEventHandler(mapper, controller, method, eventHandler);
            }
        }
View Full Code Here

Examples of org.waveprotocol.wave.client.editor.content.misc.AnnotationPaint.EventHandler

    }
  }

  private void updateEventHandler(final ContentElement element, String eventHandlerId) {
    Element implNodelet = element.getImplNodelet();
    final EventHandler handler =
        eventHandlerId == null ? null : AnnotationPaint.eventHandlerRegistry.get(eventHandlerId);
    if (handler != null) {
      DOM.sinkEvents(DomHelper.castToOld(implNodelet), MOUSE_LISTENER_EVENTS);
      DOM.setEventListener(DomHelper.castToOld(implNodelet), new EventListener() {
        @Override
        public void onBrowserEvent(Event event) {
          handler.onEvent(element, event);
        }
      });
    } else {
      removeListener(DomHelper.castToOld(implNodelet));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.