Package com.sun.jsft.tasks

Examples of com.sun.jsft.tasks.TaskManager


      facetMap.put(key, comp);

      // Register task(s)
      String task = (String) comp.getAttributes().get("task");
      StringTokenizer tok = new StringTokenizer(task, ";");
      TaskManager tm = TaskManager.getInstance();
      int taskCount = 0;
      while (tok.hasMoreTokens()) {
    task = tok.nextToken().trim();

    // Check to see if we have task:listenerType
    int idx = task.indexOf(":");
    String type = null;
    if (idx != -1) {
        type = task.substring(idx + 1);
        task = task.substring(0, idx);
      }

    // Register the Task...
    tm.addTask(task, type, new DeferredFragmentTaskListener(comp));

    // Count the tasks we depend on...
    taskCount++;
      }
View Full Code Here

TOP

Related Classes of com.sun.jsft.tasks.TaskManager

Copyright © 2018 www.massapicom. 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.