public static class SectionClassWorkSource.SectionTaskFactory extends Object implements TaskFactory<ClassWork,Indexed,Indexed>, Task<ClassWork,Indexed,Indexed>
TaskFactory
for overriding ClassWorkSource
behaviour.Constructor and Description |
---|
SectionTaskFactory(Method method,
boolean isStatic,
ParameterFactory[] parameters)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
Task<ClassWork,Indexed,Indexed> |
createTask(ClassWork work)
Creates the
Task . |
Object |
doTask(TaskContext<ClassWork,Indexed,Indexed> context)
Does the task.
|
Method |
getMethod()
Obtains the
Method . |
ParameterFactory[] |
getParameterFactories()
Obtains the
ParameterFactory instances. |
public SectionTaskFactory(Method method, boolean isStatic, ParameterFactory[] parameters)
method
- Method
for the Task
.isStatic
- Indicates if the Method
is static.parameters
- ParameterFactory
instances for the parameters of
the Method
.public ParameterFactory[] getParameterFactories()
ParameterFactory
instances.ParameterFactory
instances.public Task<ClassWork,Indexed,Indexed> createTask(ClassWork work)
TaskFactory
Task
.createTask
in interface TaskFactory<ClassWork,Indexed,Indexed>
work
- Work
for the Task
.Task
to be done for the Work
.Copyright © 2005–2016. All rights reserved.