Examples of fireEvent()


Examples of javax.enterprise.inject.spi.BeanManager.fireEvent()

                log.warn("The form validation failed but neither 'showFieldMessages' nor 'showGlobalMessages' " +
                        "is true. The validation messages will be dropped.");
            }
        }

        manager.fireEvent(this, AFTER);
        context.getApplication().publishEvent(context, PostValidateEvent.class, UIValidateForm.class, this);
    }

    /**
     * Attempt to locate the form in which this component resides. If the component is not within a UIForm tag, throw an
View Full Code Here

Examples of javax.enterprise.inject.spi.BeanManager.fireEvent()

        {
            return;
        }

        BeanManager beanManager = BeanManagerProvider.getInstance().getBeanManager();
        beanManager.fireEvent(e);
    }
}
View Full Code Here

Examples of javax.enterprise.inject.spi.BeanManager.fireEvent()

     * Fires event before bean discovery.
     */
    void fireBeforeBeanDiscoveryEvent()
    {
        BeanManager manager = webBeansContext.getBeanManagerImpl();
        manager.fireEvent(new BeforeBeanDiscoveryImpl(webBeansContext),new Annotation[0]);
    }

    /**
     * Fires event after bean discovery.
     */
 
View Full Code Here

Examples of javax.inject.manager.Manager.fireEvent()

    }
   
    private void fireInitializeEvent()
    {
        Manager manager = ManagerImpl.getManager();
        manager.fireEvent(manager, new Annotation[] { new InitializedManagerLiteral() });
    }
   
   
    private void fireDeployedEvent()
    {
View Full Code Here

Examples of javax.slee.connection.SleeConnection.fireEvent()

          "org.mobicents.slee.service.dvddemo.ORDER_SHIPPED",
          "org.mobicents", "1.0");
      CustomEvent customEvent = new CustomEvent(orderId, amount,
          customerfullname, cutomerphone);

      conn1.fireEvent(customEvent, requestType, handle, null);
      conn1.close();

    } catch (Exception e) {
      e.printStackTrace();
    }
View Full Code Here

Examples of mage.game.Game.fireEvent()

    if (numGroups == 0) return new ArrayList<Combat>();

    //add a node with no blockers
    Game sim = game.copy();
    engagements.put(sim.getCombat().getValue(sim), sim.getCombat());
    sim.fireEvent(GameEvent.getEvent(GameEvent.EventType.DECLARED_BLOCKERS, playerId, playerId));

    List<Permanent> blockers = getAvailableBlockers(game);
    addBlocker(game, blockers, engagements);

    return new ArrayList<Combat>(engagements.values());
View Full Code Here

Examples of net.customware.gwt.presenter.client.EventBus.fireEvent()

        final Stopwatch stopwatch = new Stopwatch().start();
        injector.getDispatcher().execute(action,
                new AsyncCallback<GetDocumentListResult>() {
                    @Override
                    public void onFailure(Throwable caught) {
                        eventBus.fireEvent(new NotificationEvent(
                                NotificationEvent.Severity.Error,
                                "Failed to load documents"));
                        documentListPresenter.showLoading(false);
                        stopwatch.stop();
                    }
View Full Code Here

Examples of net.solosky.maplefetion.NotifyEventListener.fireEvent()

              this.fetionContext.getFetionUser(), this.fetionContext.getLocaleSetting(), alg, type);
         
          NotifyEventListener listener = this.fetionContext.getNotifyEventListener();
         
          if(listener!=null) {
            listener.fireEvent(new ImageVerifyEvent(ImageVerifyEvent.SSI_VERIFY, verifyImage, text, tips));
          }else {
            throw new IllegalArgumentException("SSI need verify, but found no notifyEventListener" +
                " to handle verify action, please set NotifyEventListener first.");
          }
        } catch (ParseException e) {
View Full Code Here

Examples of net.solosky.maplefetion.NotifyEventListener.fireEvent()

  {
    logger.debug("FireNotifyEvent:"+event);
    NotifyEventListener listener = this.context.getNotifyEventListener();
    if(listener!=null){
      try {
        listener.fireEvent(event);
      } catch (Throwable e) {
        logger.warn("Fire NotifyEvent error.", e);
      }
    }
  }
View Full Code Here

Examples of net.solosky.maplefetion.NotifyEventListener.fireEvent()

            }
     
            //通知设置的通知监听器处理这个验证码事件,如果没有设置监听器,将抛出异常
      NotifyEventListener listener = this.context.getNotifyEventListener();
      if(listener!=null) {
        listener.fireEvent(new ImageVerifyEvent(ImageVerifyEvent.SIPC_VERIFY,
            verifyImage, text, tips, response.getRequest(),
            this.dialog, this.listener));
      }else{
        throw new IllegalArgumentException("action need verify, but found no NotifyEventListener" +
          " to handle verify action, please set NotifyEventListener first.");
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.