Package com.github.dozermapper.core
Interface BeanFactory
-
- All Known Implementing Classes:
JAXBBeanFactory,XMLBeanFactory
public interface BeanFactoryPublic custom bean factory interface.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
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default ObjectcreateBean(Object source, Class<?> sourceClass, String targetBeanId)Deprecated.default ObjectcreateBean(Object source, Class<?> sourceClass, String targetBeanId, BeanContainer beanContainer)
-
-
-
Method Detail
-
createBean
default Object createBean(Object source, Class<?> sourceClass, String targetBeanId, BeanContainer beanContainer)
-
createBean
@Deprecated default Object createBean(Object source, Class<?> sourceClass, String targetBeanId)
Deprecated.Will be removed in 6.2. Please usecreateBean(Object, Class, String, BeanContainer).- Parameters:
source- objsourceClass- objtargetBeanId- id- Returns:
- bean
-
-