@Configuration @ConditionalOnClass(value=com.github.dozermapper.core.DozerBeanMapper.class) public class DozerConfiguration extends Object
DozerBeanMapper and a DozerMapperCustomizationRegistry.
The resulting Mapper is then configured for DtoUtils.createDto(Object) so that complex object hierarchies have a better DTO conversion.
This means that instead of properties which reference other objects are copied over, a DTO is created for those properties as well.
The Mapper is created with a proxy BeanCreationStrategy that supports registering additional application-based strategies.DozerMapperCustomizationRegistry| Constructor and Description |
|---|
DozerConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
com.github.dozermapper.core.Mapper |
dozerBeanMapper(org.springframework.beans.factory.config.ConfigurableBeanFactory beanFactory,
Optional<DozerMapperCustomizationRegistry> oRegistry) |
DozerMapperCustomizationRegistry |
registry() |
@Bean @Exposed public DozerMapperCustomizationRegistry registry()
@Bean
@Exposed
public com.github.dozermapper.core.Mapper dozerBeanMapper(org.springframework.beans.factory.config.ConfigurableBeanFactory beanFactory,
Optional<DozerMapperCustomizationRegistry> oRegistry)
Copyright © 2020. All rights reserved.