|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WorkTypeBuilder<W extends Work>
Provides means for the WorkSource to provide a
type definition of the Work.
| Method Summary | ||
|---|---|---|
|
addTaskType(String taskName,
TaskFactory<? super W,M,F> taskFactory,
Class<M> objectKeysClass,
Class<F> flowKeysClass)
Adds a TaskTypeBuilder to this WorkTypeBuilder
definition. |
|
void |
setWorkFactory(WorkFactory<W> workFactory)
Specifies the WorkFactory to create the Work. |
|
| Method Detail |
|---|
void setWorkFactory(WorkFactory<W> workFactory)
WorkFactory to create the Work.
workFactory - WorkFactory.
<M extends Enum<M>,F extends Enum<F>> TaskTypeBuilder<M,F> addTaskType(String taskName,
TaskFactory<? super W,M,F> taskFactory,
Class<M> objectKeysClass,
Class<F> flowKeysClass)
TaskTypeBuilder to this WorkTypeBuilder
definition.
taskName - Name of the Task.taskFactory - TaskFactory to create the Task.objectKeysClass - Enum providing the keys of the dependent
Object instances required by the
TaskTypeBuilder. This may be null if the
TaskTypeBuilder requires no dependent Object
instances or they are Indexed.flowKeysClass - Enum providing the keys of the JobSequence instigated
by the TaskTypeBuilder. This may be null
if the TaskTypeBuilder does not instigate JobSequence
instances or they are Indexed.
TaskTypeBuilder to provide type definition
of the added Task.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||