org.objectweb.dream.control.activity.task
Class BasicTaskControllerMixin

java.lang.Object
  extended by org.objectweb.dream.control.activity.task.BasicTaskControllerMixin
All Implemented Interfaces:
TaskController

public abstract class BasicTaskControllerMixin
extends Object
implements TaskController

Provides a basic implementation of the TaskManager interface.

Requirements


Field Summary
 BindingController _this_weaveableBC
          The weaveableBC field required by this mixin.
 Logger _this_weaveableTCLogger
          The weaveableTCLogger field required by this mixin.
protected  Map<Task,Map<String,?>> taskRegistrationHints
          A map containing registration hints for each task.
 
Method Summary
abstract  void _super_initFcController(InitializationContext ic)
          The Controller.initFcController(InitializationContext) method overridden by this mixin.
 void addTask(Task task, Map<String,Object> hints)
          Adds a new task in this controller
 Task[] getTasks()
          Returns the tasks of the component to which this interface belongs.
 void initFcController(InitializationContext ic)
           
 void removeTask(Task task)
          Removes a task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

taskRegistrationHints

protected Map<Task,Map<String,?>> taskRegistrationHints
A map containing registration hints for each task.


_this_weaveableTCLogger

public Logger _this_weaveableTCLogger
The weaveableTCLogger field required by this mixin. This field is supposed to reference the logger of this controller.


_this_weaveableBC

public BindingController _this_weaveableBC
The weaveableBC field required by this mixin. This field is supposed to reference the BindingControllerinterface of the component to which this controller object belongs.

Method Detail

initFcController

public void initFcController(InitializationContext ic)
                      throws InstantiationException
Throws:
InstantiationException
See Also:
Controller.initFcController(InitializationContext)

getTasks

public Task[] getTasks()
Description copied from interface: TaskController
Returns the tasks of the component to which this interface belongs.

Specified by:
getTasks in interface TaskController
Returns:
an array of task.
See Also:
TaskController.getTasks()

addTask

public void addTask(Task task,
                    Map<String,Object> hints)
             throws IllegalTaskException
Description copied from interface: TaskController
Adds a new task in this controller

Specified by:
addTask in interface TaskController
Parameters:
task - a new task.
hints - registration hints.
Throws:
IllegalTaskException - if the task component can't be registered.
See Also:
TaskController.addTask(Task, Map)

removeTask

public void removeTask(Task task)
                throws NoSuchTaskException,
                       IllegalTaskException
Description copied from interface: TaskController
Removes a task. The controller unregisters the task (if registered) and remove it.

Specified by:
removeTask in interface TaskController
Parameters:
task - the task to remove.
Throws:
NoSuchTaskException - if the given task component is unknown.
IllegalTaskException - if the given task can't be unregistered.
See Also:
TaskController.removeTask(Task)

_super_initFcController

public abstract void _super_initFcController(InitializationContext ic)
                                      throws InstantiationException
The Controller.initFcController(InitializationContext) method overridden by this mixin.

Throws:
InstantiationException
See Also:
Controller.initFcController(InitializationContext)


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