Class DozerConfiguration
java.lang.Object
com.foreach.across.modules.hibernate.util.DozerConfiguration
@Configuration
@ConditionalOnClass(com.github.dozermapper.core.DozerBeanMapper.class)
public class DozerConfiguration
extends Object
If Dozer is on the classpath, this configures a
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.- Since:
- 4.0.1
- Author:
- Steven Gentens
- See Also:
-
Constructor Summary
ConstructorDescriptionDozerConfiguration
(AcrossHibernateModuleSettings acrossHibernateModuleSettings) -
Method Summary
Modifier and TypeMethodDescriptioncom.github.dozermapper.core.Mapper
dozerBeanMapper
(org.springframework.beans.factory.config.ConfigurableBeanFactory beanFactory, Optional<DozerMapperCustomizationRegistry> oRegistry) registry()
-
Constructor Details
-
DozerConfiguration
-
-
Method Details
-
registry
-
dozerBeanMapper
@Bean @Exposed public com.github.dozermapper.core.Mapper dozerBeanMapper(org.springframework.beans.factory.config.ConfigurableBeanFactory beanFactory, Optional<DozerMapperCustomizationRegistry> oRegistry)
-