예제 #1
0
 public void startAction() throws ActionException {
   for (int i = 0; i < actions.length; i++) {
     Iterator it = actions[i].iterator();
     while (it.hasNext()) {
       GraphAction action = (GraphAction) it.next();
       action.startAction();
     }
   }
 }
예제 #2
0
  private void execActions(MethodInfo methodInfo, ControlFlowGraph graph, int stage)
      throws ActionException {
    Iterator it = actions[stage].iterator();
    while (it.hasNext()) {
      GraphAction action = (GraphAction) it.next();

      if (logger.isInfoEnabled()) {
        logger.info(
            "Starting sub-action {"
                + action.getActionName()
                + "} in stage {"
                + getStageName(stage)
                + "}.");
      }

      action.execute(methodInfo, graph);

      if (logger.isInfoEnabled()) {
        logger.info("Finished sub-action {" + action.getActionName() + "}.");
      }
    }
  }