public class DefaultTaskDefinitionAssembler<R extends TaskDefinitionResource> extends org.springframework.hateoas.server.mvc.RepresentationModelAssemblerSupport<TaskExecutionAwareTaskDefinition,R>
RepresentationModelAssembler
implementation that converts
TaskDefinition
s to TaskDefinitionResource
s.Constructor and Description |
---|
DefaultTaskDefinitionAssembler(TaskExecutionService taskExecutionService,
boolean enableManifest,
Class<R> classType,
TaskJobService taskJobService,
org.springframework.cloud.dataflow.aggregate.task.AggregateTaskExplorer taskExplorer,
org.springframework.cloud.dataflow.aggregate.task.AggregateExecutionSupport aggregateExecutionSupport) |
Modifier and Type | Method and Description |
---|---|
R |
instantiateModel(TaskExecutionAwareTaskDefinition taskExecutionAwareTaskDefinition) |
boolean |
isEnableManifest()
Returns if the TaskExecution needs to be updated with the task manifest.
|
void |
setEnableManifest(boolean enableManifest)
Set the flag to indicate whether the task manifest needs to be updated for the TaskExecution.
|
R |
toModel(TaskExecutionAwareTaskDefinition taskExecutionAwareTaskDefinition) |
public DefaultTaskDefinitionAssembler(TaskExecutionService taskExecutionService, boolean enableManifest, Class<R> classType, TaskJobService taskJobService, org.springframework.cloud.dataflow.aggregate.task.AggregateTaskExplorer taskExplorer, org.springframework.cloud.dataflow.aggregate.task.AggregateExecutionSupport aggregateExecutionSupport)
public R toModel(TaskExecutionAwareTaskDefinition taskExecutionAwareTaskDefinition)
public R instantiateModel(TaskExecutionAwareTaskDefinition taskExecutionAwareTaskDefinition)
instantiateModel
in class org.springframework.hateoas.server.mvc.RepresentationModelAssemblerSupport<TaskExecutionAwareTaskDefinition,R extends TaskDefinitionResource>
public boolean isEnableManifest()
public void setEnableManifest(boolean enableManifest)
enableManifest
- the boolean value of to enable setting the manifestCopyright © 2024 Pivotal Software, Inc.. All rights reserved.