|
||||||||||
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
Provides a basic implementation of the TaskManagerController
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 |
taskControls
A map containing control interface for each registered task. |
protected Map |
taskRegistrationHints
A map containing registration hints for eack task. |
Method Summary | |
abstract void |
_super_initFcController(InitializationContext ic)
The Controller.initFcController(InitializationContext)
method overriden by this mixin. |
void |
addTask(Task task,
Map hints)
Adds a new task in this controller |
Object |
getTaskControl(Task task)
Returns an interface that can be used to control a task (may be null if no control is available for the task). |
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 taskRegistrationHints
protected Map taskControls
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 hints) throws IllegalTaskException
TaskController
addTask
in interface TaskController
task
- a new task.hints
- registration hints. It can contains the name of the controller
descriptor of the created component task, with the key
"taskControllerDesc"
. If no setted, use
primitiveTask
controller descriptor. null
.
IllegalTaskException
- if the task component can't be registered.TaskController.addTask(Task, Map)
public Object getTaskControl(Task task) throws NoSuchTaskException
TaskController
null
if no control is available for the task). The runtime
type of the interface depends on the implementation of the activity manager
and on the hints
that have been given as paremeters of the
registration method of the activity manager.
getTaskControl
in interface TaskController
task
- a task.
null
)
NoSuchTaskException
- if the given task component is unknown.TaskController.getTaskControl(Task)
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 overriden by this mixin.
InstantiationException
Controller.initFcController(InitializationContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |