|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.control.activity.task.BasicTaskActivationMixin
Basic Implementation of the TaskActivationController
. When a task is
activated, it registers it in the TaskManagerController
this
component is bound to. This mixin must be used with a TaskController
implementation mixin like BasicTaskControllerMixin
.
Requirements
LoggableTaskMixin
mixin.UseBindingControllerMixin
mixin.
Field Summary | |
Map |
_this_taskControls
The taskControls field required by this mixin. |
Map |
_this_taskRegistrationHints
The taskRegistrationHints field required by this mixin. |
BindingController |
_this_weaveableBC
The weaveableBC field required by this mixin. |
Logger |
_this_weaveableTCLogger
The weaveableTCLogger field required by this mixin. |
Constructor Summary | |
BasicTaskActivationMixin()
|
Method Summary | |
void |
activateTask(Task task)
Register the given task with the activity manager. |
void |
deactivateTask(Task task)
Unregister the given task with the activity manager. |
void |
deactivateTask(Task task,
TaskStoppedListener taskStoppedListener)
Unregister the given task with the activity manager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Logger _this_weaveableTCLogger
weaveableTCLogger
field required by this mixin. This
field is supposed to reference the logger of this controller.
public Map _this_taskRegistrationHints
taskRegistrationHints
field required by this mixin. This
field is supposed to reference the map containing hints passed when task
are added in the task controller
TaskController.addTask(Task, Map)
public Map _this_taskControls
taskControls
field required by this mixin. This field is
supposed to reference the map containing control object returned by
TaskController.getTaskControl(Task)
.
public BindingController _this_weaveableBC
BindingController
interface of
the component to which this controller object belongs.
Constructor Detail |
public BasicTaskActivationMixin()
Method Detail |
public void activateTask(Task task) throws NoSuchTaskException, IllegalTaskException
TaskActivationController
activateTask
in interface TaskActivationController
task
- the task to register.
IllegalTaskException
- if the task can't be registred in the activity
manager.
NoSuchTaskException
- if the given task is unknown.TaskActivationController.activateTask(Task)
public void deactivateTask(Task task) throws NoSuchTaskException, IllegalTaskException
TaskActivationController
deactivateTask
in interface TaskActivationController
task
- the task to unregister.
NoSuchTaskException
- if the given task is unknown.
IllegalTaskException
- if the task can't be unregistred in the
activity manager.TaskActivationController.deactivateTask(Task)
public void deactivateTask(Task task, TaskStoppedListener taskStoppedListener) throws NoSuchTaskException, IllegalTaskException
TaskActivationController
deactivateTask
in interface TaskActivationController
task
- the task to unregister.taskStoppedListener
- the listener to notify.
IllegalTaskException
- if the task can't be unregistred in the
activity manager.
NoSuchTaskException
- if the given task is unknown.TaskActivationController.deactivateTask(Task, TaskStoppedListener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |