public class DefaultStreamDefinitionAssembler<R extends StreamDefinitionResource> extends org.springframework.hateoas.server.mvc.RepresentationModelAssemblerSupport<StreamDefinition,R>
RepresentationModelAssembler
implementation that converts
StreamDefinition
s to StreamDefinitionResource
s.Modifier and Type | Field and Description |
---|---|
protected StreamDefinitionService |
streamDefinitionService |
protected StreamService |
streamService |
Constructor and Description |
---|
DefaultStreamDefinitionAssembler(StreamDefinitionService streamDefinitionService,
StreamService streamService,
List<StreamDefinition> streamDefinitions,
Class<R> classType) |
Modifier and Type | Method and Description |
---|---|
R |
instantiateModel(StreamDefinition streamDefinition) |
R |
toModel(StreamDefinition stream) |
protected final StreamDefinitionService streamDefinitionService
protected final StreamService streamService
public DefaultStreamDefinitionAssembler(StreamDefinitionService streamDefinitionService, StreamService streamService, List<StreamDefinition> streamDefinitions, Class<R> classType)
public R toModel(StreamDefinition stream)
public R instantiateModel(StreamDefinition streamDefinition)
instantiateModel
in class org.springframework.hateoas.server.mvc.RepresentationModelAssemblerSupport<StreamDefinition,R extends StreamDefinitionResource>
Copyright © 2024 Pivotal Software, Inc.. All rights reserved.