org.objectweb.dream.control.activity
Class Util

java.lang.Object
  extended byorg.objectweb.dream.control.activity.Util

public final class Util
extends Object

Utility methods to manage tasks.


Method Summary
static void addTask(Component component, Task task, Map registrationHints)
          Adds the given task in the task controller of the given component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addTask

public static void addTask(Component component,
                           Task task,
                           Map registrationHints)
                    throws NoSuchInterfaceException,
                           IllegalTaskException
Adds the given task in the task controller of the given component.

Parameters:
component - the component interface which should provide the TaskControllercontrol interface.
task - the task to add
registrationHints - the hints passed to the TaskController.addTask(Task, Map)method.
Throws:
NoSuchInterfaceException - If the given component doesn't have a task controller interface.
IllegalTaskException - If the given task can't be added to the task controller.


Copyright © 2003, 2004 - INRIA Rhone-Alpes - All Rights Reserved.