Package org.springframework.data.convert
Class DtoInstantiatingConverter
java.lang.Object
org.springframework.data.convert.DtoInstantiatingConverter
public class DtoInstantiatingConverter
extends Object
implements org.springframework.core.convert.converter.Converter<Object,Object>
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
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