Examples of Initiator


Examples of org.wso2.carbon.policybuilder.ui.internal.initiator.Initiator

  private ArrayList<PolicyBehavior> mainList = new ArrayList<PolicyBehavior>();

  private ArrayList currentAssetionList;

  public String assemble(String input) {
    Initiator init = new Initiator();
    boolean hasConfig = init.initiate();
    boolean currentSearchFinished = false;
    while (hasConfig) {
      //if no behaviors left for loading
      Context context = new PolicyContext();
      context.init();
      prev = null;
      main = null;
      currentAssetionList = new ArrayList();
      while (true) {
        try {
          currentSearchFinished = init.searchNext();
          if (currentSearchFinished) {
            hasConfig = init.initiate();
            break;
          }
        } catch (BehaviorLoadFault behaviorLoadFault) {
          behaviorLoadFault.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
          hasConfig = init.initiate();
          break;
        } catch (AssertionLoadFault assertionLoadFault) {
          assertionLoadFault.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
          hasConfig = init.initiate();
          break;
        }
        doLoading(init, context);
      }
      if (main != null) {
View Full Code Here

Examples of org.zkoss.zk.ui.util.Initiator

   * It eats all exception without throwing one (but logging).
   * Caller has to re-throw the exception.
   */
  public boolean doCatch(Throwable t) {
    for (Iterator it = _inits.iterator(); it.hasNext();) {
      final Initiator init = (Initiator)it.next();
      try {
        try {
          if (init.doCatch(t))
            return true; //ignore and skip all other initiators
        } catch (AbstractMethodError ex) { //backward compatible prior to 3.0
          final Method m = init.getClass().getMethod(
              "doCatch", new Class[] {Throwable.class});
          Fields.setAccessible(m, true);
          m.invoke(init, new Object[] {t});
        }
      } catch (Throwable ex) {
View Full Code Here

Examples of org.zkoss.zk.ui.util.Initiator

  /** Invokes {@link Initiator#doFinally}.
   */
  public void doFinally() {
    Throwable t = null;
    for (Iterator it = _inits.iterator(); it.hasNext();) {
      final Initiator init = (Initiator)it.next();
      try {
        init.doFinally();
      } catch (Throwable ex) {
        Initiators.log.error(ex);
        if (t == null) t = ex;
      }
    }
View Full Code Here

Examples of org.zkoss.zk.ui.util.Initiator

    final List inits = new LinkedList();
    for (Iterator it = _initdefs.iterator(); it.hasNext();) {
      final InitiatorInfo def = (InitiatorInfo)it.next();
      try {
        final Initiator init = def.newInitiator(getEvaluator(), page);
        if (init != null) inits.add(init);
      } catch (Throwable ex) {
        throw UiException.Aide.wrap(ex);
      }
    }
View Full Code Here

Examples of quickfix.Initiator

    private Initiator createInitiator(Application application, SessionSettings settings,
            MessageStoreFactory messageStoreFactory, LogFactory sessionLogFactory,
            MessageFactory messageFactory, ThreadModel threadModel) throws ConfigError {
       
        Initiator initiator;
        if (threadModel == ThreadModel.ThreadPerSession) {
            initiator = new ThreadedSocketInitiator(application, messageStoreFactory, settings, sessionLogFactory, messageFactory);
        } else if (threadModel == ThreadModel.ThreadPerConnector) {
            initiator = new SocketInitiator(application, messageStoreFactory, settings, sessionLogFactory, messageFactory);
        } else {
View Full Code Here

Examples of quickfix.Initiator

   
    private Initiator createInitiator(Application application, SessionSettings settings,
            MessageStoreFactory messageStoreFactory, LogFactory sessionLogFactory,
            MessageFactory messageFactory, ThreadModel threadModel) throws ConfigError {
       
        Initiator initiator;
        if (threadModel == ThreadModel.ThreadPerSession) {
            initiator = new ThreadedSocketInitiator(application, messageStoreFactory, settings, sessionLogFactory, messageFactory);
        } else if (threadModel == ThreadModel.ThreadPerConnector) {
            initiator = new SocketInitiator(application, messageStoreFactory, settings, sessionLogFactory, messageFactory);
        } else {
View Full Code Here

Examples of quickfix.Initiator

   
    private Initiator createInitiator(Application application, SessionSettings settings,
            MessageStoreFactory messageStoreFactory, LogFactory sessionLogFactory,
            MessageFactory messageFactory, ThreadModel threadModel) throws ConfigError {
       
        Initiator initiator;
        if (threadModel == ThreadModel.ThreadPerSession) {
            initiator = new ThreadedSocketInitiator(application, messageStoreFactory, settings, sessionLogFactory, messageFactory);
        } else if (threadModel == ThreadModel.ThreadPerConnector) {
            initiator = new SocketInitiator(application, messageStoreFactory, settings, sessionLogFactory, messageFactory);
        } else {
View Full Code Here

Examples of quickfix.Initiator

   
    private Initiator createInitiator(Application application, SessionSettings settings,
            MessageStoreFactory messageStoreFactory, LogFactory sessionLogFactory,
            MessageFactory messageFactory, ThreadModel threadModel) throws ConfigError {
       
        Initiator initiator;
        if (threadModel == ThreadModel.ThreadPerSession) {
            initiator = new ThreadedSocketInitiator(application, messageStoreFactory, settings, sessionLogFactory, messageFactory);
        } else if (threadModel == ThreadModel.ThreadPerConnector) {
            initiator = new SocketInitiator(application, messageStoreFactory, settings, sessionLogFactory, messageFactory);
        } else {
View Full Code Here

Examples of quickfix.Initiator

    private Initiator createInitiator(Application application, SessionSettings settings,
            MessageStoreFactory messageStoreFactory, LogFactory sessionLogFactory,
            MessageFactory messageFactory, ThreadModel threadModel) throws ConfigError {
       
        Initiator initiator;
        if (threadModel == ThreadModel.ThreadPerSession) {
            initiator = new ThreadedSocketInitiator(application, messageStoreFactory, settings, sessionLogFactory, messageFactory);
        } else if (threadModel == ThreadModel.ThreadPerConnector) {
            initiator = new SocketInitiator(application, messageStoreFactory, settings, sessionLogFactory, messageFactory);
        } else {
View Full Code Here

Examples of quickfix.Initiator

   
    private Initiator createInitiator(Application application, SessionSettings settings,
            MessageStoreFactory messageStoreFactory, LogFactory sessionLogFactory,
            MessageFactory messageFactory, ThreadModel threadModel) throws ConfigError {
       
        Initiator initiator;
        if (threadModel == ThreadModel.ThreadPerSession) {
            initiator = new ThreadedSocketInitiator(application, messageStoreFactory, settings, sessionLogFactory, messageFactory);
        } else if (threadModel == ThreadModel.ThreadPerConnector) {
            initiator = new SocketInitiator(application, messageStoreFactory, settings, sessionLogFactory, messageFactory);
        } else {
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.