@API(status=INTERNAL, since="6.1.2") public final class DtoInstantiatingConverter extends Object implements Converter<EntityInstanceWithSource,Object>
Converter
to instantiate DTOs from fully equipped domain objects.
The original idea of this converter and it's usage is to be found in Spring Data Mongo. Thanks to the original
authors Oliver Drotbohm and Mark Paluch.Constructor and Description |
---|
DtoInstantiatingConverter(Class<?> dtoType,
Neo4jMappingContext context)
Creates a new
Converter to instantiate DTOs. |
Modifier and Type | Method and Description |
---|---|
Object |
convert(EntityInstanceWithSource entityInstanceAndSource) |
public DtoInstantiatingConverter(Class<?> dtoType, Neo4jMappingContext context)
Converter
to instantiate DTOs.dtoType
- must not be null.context
- must not be null.public Object convert(EntityInstanceWithSource entityInstanceAndSource)
convert
in interface Converter<EntityInstanceWithSource,Object>
Copyright © 2019–2021 Neo4j, Neo4j Sweden AB. All rights reserved.