public interface BeanFactory
You can configure Dozer to use custom bean factories to create new instances of destination data objects during the mapping process. By default Dozer just creates a new instance of any destination objects using a default constructor. This is sufficient for most use cases, but if you need more flexibility you can specify your own bean factories to instantiate the data objects.
Your custom bean factory must implement the com.github.dozermapper.core.BeanFactory interface.
Note: By default the Dozer mapping engine will use the destination object class name for the bean id when invoking the factory.
https://dozermapper.github.io/gitbook/documentation/custombeanfactories.html
| Modifier and Type | Method and Description |
|---|---|
default Object |
createBean(Object source,
Class<?> sourceClass,
String targetBeanId)
Deprecated.
|
default Object |
createBean(Object source,
Class<?> sourceClass,
String targetBeanId,
BeanContainer beanContainer) |
default Object createBean(Object source, Class<?> sourceClass, String targetBeanId, BeanContainer beanContainer)
@Deprecated default Object createBean(Object source, Class<?> sourceClass, String targetBeanId)
createBean(Object, Class, String, BeanContainer).source - objsourceClass - objtargetBeanId - idCopyright © 2005–2021 dozer. All rights reserved.