Class DefaultStreamDefinitionAssembler<R extends StreamDefinitionResource>
java.lang.Object
org.springframework.hateoas.server.mvc.RepresentationModelAssemblerSupport<StreamDefinition,R>
org.springframework.cloud.dataflow.server.controller.assembler.DefaultStreamDefinitionAssembler<R>
- All Implemented Interfaces:
org.springframework.hateoas.server.RepresentationModelAssembler<StreamDefinition,
R>
public class DefaultStreamDefinitionAssembler<R extends StreamDefinitionResource>
extends org.springframework.hateoas.server.mvc.RepresentationModelAssemblerSupport<StreamDefinition,R>
RepresentationModelAssembler
implementation that converts
StreamDefinition
s to StreamDefinitionResource
s.- Author:
- Ilayaperumal Gopinathan
-
Field Summary
Modifier and TypeFieldDescriptionprotected final StreamDefinitionService
protected final StreamService
-
Constructor Summary
ConstructorDescriptionDefaultStreamDefinitionAssembler
(StreamDefinitionService streamDefinitionService, StreamService streamService, List<StreamDefinition> streamDefinitions, Class<R> classType) -
Method Summary
Modifier and TypeMethodDescriptioninstantiateModel
(StreamDefinition streamDefinition) toModel
(StreamDefinition stream) Methods inherited from class org.springframework.hateoas.server.mvc.RepresentationModelAssemblerSupport
createModelWithId, createModelWithId, getControllerClass, getResourceType, map, toCollectionModel
-
Field Details
-
streamDefinitionService
-
streamService
-
-
Constructor Details
-
DefaultStreamDefinitionAssembler
public DefaultStreamDefinitionAssembler(StreamDefinitionService streamDefinitionService, StreamService streamService, List<StreamDefinition> streamDefinitions, Class<R> classType)
-
-
Method Details
-
toModel
-
instantiateModel
- Overrides:
instantiateModel
in classorg.springframework.hateoas.server.mvc.RepresentationModelAssemblerSupport<StreamDefinition,
R extends StreamDefinitionResource>
-