Package org.springframework.data.convert
Class DtoInstantiatingConverter
java.lang.Object
org.springframework.data.convert.DtoInstantiatingConverter
Spring
Converter to create instances of the given DTO type from the source value handed into the conversion.- Since:
- 2.7
- Author:
- Mark Paluch, Oliver Drotbohm
-
Constructor Summary
ConstructorsConstructorDescriptionDtoInstantiatingConverter(Class<?> dtoType, MappingContext<? extends PersistentEntity<?, ?>, ? extends PersistentProperty<?>> context, EntityInstantiators instantiators) Create a newConverterto instantiate DTOs. -
Method Summary
-
Constructor Details
-
DtoInstantiatingConverter
public DtoInstantiatingConverter(Class<?> dtoType, MappingContext<? extends PersistentEntity<?, ?>, ? extends PersistentProperty<?>> context, EntityInstantiators instantiators) Create a newConverterto instantiate DTOs.- Parameters:
dtoType- must not be null.context- must not be null.instantiators- must not be null.
-
-
Method Details