public class ClassWorkSource extends AbstractWorkSource<ClassWork> implements WorkSourceService<ClassWork,ClassWorkSource>
Modifier and Type | Class and Description |
---|---|
protected static class |
ClassWorkSource.FlowInterfaceParameterManufacturer<A extends Annotation>
|
protected static interface |
ClassWorkSource.ParameterManufacturer
Manufactures the
ParameterFactory . |
protected static class |
ClassWorkSource.TaskContextParameterManufacturer
|
AbstractWorkSource.SpecificationContext
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME_PROPERTY_NAME
Property name providing the
Class name. |
Constructor and Description |
---|
ClassWorkSource()
Initiate.
|
getSpecification
public static final String CLASS_NAME_PROPERTY_NAME
Class
name.protected void loadParameterManufacturers(List<ClassWorkSource.ParameterManufacturer> manufacturers)
ClassWorkSource.ParameterManufacturer
instances.manufacturers
- List of ClassWorkSource.ParameterManufacturer
instances to use.protected WorkFactory<ClassWork> createWorkFactory(Class<?> clazz)
TaskFactory
.clazz
- Work
class.WorkFactory
.protected TaskFactory<ClassWork,Indexed,Indexed> createTaskFactory(Class<?> clazz, Method method, boolean isStatic, ParameterFactory[] parameters)
TaskFactory
.clazz
- Work
class.method
- Method
on the class.isStatic
- Indicates if the Method
is static.parameters
- ParameterFactory
instances.TaskFactory
.protected TaskTypeBuilder<Indexed,Indexed> addTaskType(Class<?> clazz, WorkTypeBuilder<ClassWork> workTypeBuilder, String taskName, TaskFactory<ClassWork,Indexed,Indexed> taskFactory, Sequence objectSequence, Sequence flowSequence)
TaskTypeBuilder
.clazz
- Work
class.workTypeBuilder
- WorkTypeBuilder
.taskName
- Name of the Task
.taskFactory
- TaskFactory
.objectSequence
- Object Sequence
.flowSequence
- Flow Sequence
.TaskTypeBuilder
.public String getWorkSourceAlias()
WorkSourceService
WorkSource
Class
.getWorkSourceAlias
in interface WorkSourceService<ClassWork,ClassWorkSource>
WorkSource
Class
.public Class<ClassWorkSource> getWorkSourceClass()
WorkSourceService
WorkSource
Class
.getWorkSourceClass
in interface WorkSourceService<ClassWork,ClassWorkSource>
WorkSource
Class
.protected void loadSpecification(AbstractWorkSource.SpecificationContext context)
AbstractWorkSource
WorkSourceSpecification
.loadSpecification
in class AbstractWorkSource<ClassWork>
context
- AbstractWorkSource.SpecificationContext
.public void sourceWork(WorkTypeBuilder<ClassWork> workTypeBuilder, WorkSourceContext context) throws Exception
WorkSource
WorkType
by populating it via the input
WorkTypeBuilder
.sourceWork
in interface WorkSource<ClassWork>
workTypeBuilder
- WorkTypeBuilder
to be populated with the
type definition
of the Work
.context
- WorkSourceContext
to source details to populate the
WorkTypeBuilder
.Exception
- If fails to populate the WorkTypeBuilder
.Copyright © 2005–2016. All rights reserved.