|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.control.activity.task.BasicTaskControllerMixin
public abstract class BasicTaskControllerMixin
Provides a basic implementation of the
TaskManager
interface.
Requirements
LoggableTaskMixin
mixin.UseBindingControllerMixin
mixin.
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 |
---|
protected Map<Task,Map<String,?>> taskRegistrationHints
public Logger _this_weaveableTCLogger
public BindingController _this_weaveableBC
BindingController
interface of
the component to which this controller object belongs.
Method Detail |
---|
public void initFcController(InitializationContext ic) throws InstantiationException
InstantiationException
Controller.initFcController(InitializationContext)
public Task[] getTasks()
TaskController
getTasks
in interface TaskController
TaskController.getTasks()
public void addTask(Task task, Map<String,Object> hints) throws IllegalTaskException
TaskController
addTask
in interface TaskController
task
- a new task.hints
- registration hints.
IllegalTaskException
- if the task component can't be registered.TaskController.addTask(Task, Map)
public void removeTask(Task task) throws NoSuchTaskException, IllegalTaskException
TaskController
removeTask
in interface TaskController
task
- the task to remove.
NoSuchTaskException
- if the given task component is unknown.
IllegalTaskException
- if the given task can't be unregistered.TaskController.removeTask(Task)
public abstract void _super_initFcController(InitializationContext ic) throws InstantiationException
Controller.initFcController(InitializationContext)
method overridden by this mixin.
InstantiationException
Controller.initFcController(InitializationContext)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |