1 23 24 package org.objectweb.dream.control.activity; 25 26 import java.util.Map ; 27 28 import org.objectweb.dream.control.activity.task.IllegalTaskException; 29 import org.objectweb.dream.control.activity.task.Task; 30 import org.objectweb.dream.control.activity.task.TaskController; 31 import org.objectweb.dream.util.Dream; 32 import org.objectweb.fractal.api.Component; 33 import org.objectweb.fractal.api.NoSuchInterfaceException; 34 35 38 public final class Util 39 { 40 41 private Util() 42 { 43 } 44 45 58 public static void addTask(Component component, Task task, 59 Map registrationHints) throws NoSuchInterfaceException, 60 IllegalTaskException 61 { 62 TaskController taskController = Dream.getTaskController(component); 63 taskController.addTask(task, registrationHints); 64 } 65 } | Popular Tags |