public class WorkBuilderImpl<W extends Work> extends Object implements WorkBuilder<W>, WorkConfiguration<W>
WorkBuilder
implementation.Constructor and Description |
---|
WorkBuilderImpl(String workName,
WorkFactory<W> workFactory)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
<D extends Enum<D>,F extends Enum<F>> |
addTask(String taskName,
TaskFactory<? super W,D,F> taskFactory)
|
<I,A extends Enum<A>,AS extends AdministratorSource<I,A>> |
addWorkAdministrator(String workAdministratorName,
Class<AS> adminsistratorSource)
Adds a
Work bound Administrator . |
DependencyMappingBuilder |
addWorkManagedObject(String workManagedObjectName,
String officeManagedObjectName)
Adds a
Work bound ManagedObject . |
AdministratorSourceConfiguration<?,?>[] |
getAdministratorConfiguration()
Obtains the configuration of the
Work bound Administrator
instances. |
String |
getInitialTaskName()
|
ManagedObjectConfiguration<?>[] |
getManagedObjectConfiguration()
Obtains the configuration of the
Work bound ManagedObject
instances. |
TaskBuilder<W,?,?> |
getTaskBuilder(String namespace,
String taskName)
Obtains the
TaskBuilder . |
<D extends Enum<D>,F extends Enum<F>> |
getTaskConfiguration()
|
WorkFactory<W> |
getWorkFactory()
Obtains the
WorkFactory to create the Work . |
String |
getWorkName()
Obtains the name of this
Work . |
void |
setInitialTask(String initialTaskName)
|
public WorkBuilderImpl(String workName, WorkFactory<W> workFactory)
workName
- Name of the Work
.workFactory
- WorkFactory
.public TaskBuilder<W,?,?> getTaskBuilder(String namespace, String taskName)
TaskBuilder
.namespace
- Name space to identify the TaskBuilder
.taskName
- Name of the TaskBuilder
.TaskBuilder
.public DependencyMappingBuilder addWorkManagedObject(String workManagedObjectName, String officeManagedObjectName)
WorkBuilder
Adds a Work
bound ManagedObject
.
Dependency scope:
ManagedObject
instances added via this method.ProcessState
bound ManagedObject
instances linked to
this Work
.addWorkManagedObject
in interface WorkBuilder<W extends Work>
workManagedObjectName
- Name of the ManagedObject
to be referenced locally by
this Work
.officeManagedObjectName
- Name of the ManagedObject
referenced locally within
the Office
.DependencyMappingBuilder
.public <I,A extends Enum<A>,AS extends AdministratorSource<I,A>> AdministratorBuilder<A> addWorkAdministrator(String workAdministratorName, Class<AS> adminsistratorSource)
WorkBuilder
Work
bound Administrator
.addWorkAdministrator
in interface WorkBuilder<W extends Work>
I
- Extension interface type.A
- Administrator
type.AS
- AdministratorSource
type.workAdministratorName
- Name of the Administrator
to be referenced locally by
this Work
.adminsistratorSource
- AdministratorSource
class.AdministratorBuilder
for the Administrator
.public void setInitialTask(String initialTaskName)
WorkBuilder
setInitialTask
in interface WorkBuilder<W extends Work>
initialTaskName
- Initial Task
.public <D extends Enum<D>,F extends Enum<F>> TaskBuilder<W,D,F> addTask(String taskName, TaskFactory<? super W,D,F> taskFactory)
WorkBuilder
addTask
in interface WorkBuilder<W extends Work>
D
- Dependency key type.F
- Flow key type.taskName
- Name of task local to this Work
.taskFactory
- TaskFactory
to create the Task
.TaskBuilder
for the Task
.public String getWorkName()
WorkConfiguration
Work
.getWorkName
in interface WorkConfiguration<W extends Work>
Work
.public WorkFactory<W> getWorkFactory()
WorkConfiguration
WorkFactory
to create the Work
.getWorkFactory
in interface WorkConfiguration<W extends Work>
WorkFactory
to create the Work
to be done.public ManagedObjectConfiguration<?>[] getManagedObjectConfiguration()
WorkConfiguration
Work
bound ManagedObject
instances.getManagedObjectConfiguration
in interface WorkConfiguration<W extends Work>
ManagedObject
configuration for this
Work
.public AdministratorSourceConfiguration<?,?>[] getAdministratorConfiguration()
WorkConfiguration
Work
bound Administrator
instances.getAdministratorConfiguration
in interface WorkConfiguration<W extends Work>
Administrator
configuration this Work
.public String getInitialTaskName()
WorkConfiguration
getInitialTaskName
in interface WorkConfiguration<W extends Work>
Task
of the Work
.public <D extends Enum<D>,F extends Enum<F>> TaskConfiguration<W,D,F>[] getTaskConfiguration()
WorkConfiguration
getTaskConfiguration
in interface WorkConfiguration<W extends Work>
D
- Dependency key type.F
- Flow key type.Task
instances of the Work
.Copyright © 2005–2016. All rights reserved.