Class DozerMapperCustomizationRegistry
java.lang.Object
com.foreach.across.modules.hibernate.util.DozerMapperCustomizationRegistry
@ConditionalOnClass(com.github.dozermapper.core.DozerBeanMapper.class)
public class DozerMapperCustomizationRegistry
extends Object
Configures a proxy
BeanCreationStrategy to support customizing the Dozer Mapper.
If multiple BeanCreationStrategys match, the one with the lowest order matches.
If no order is specified during registration, the DEFAULT_ORDER is applied.- Since:
- 4.0.1
- Author:
- Steven Gentens
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DozerMapperCustomizationRegistry.DozerCustomizationRegistrar<com.github.dozermapper.core.factory.BeanCreationStrategy>Creates a registrar forBeanCreationStrategys.static DozerMapperCustomizationRegistry.DozerCustomizationRegistrar<com.github.dozermapper.core.CustomFieldMapper>Creates a registrar forCustomFieldMappers.voidregister(@NonNull DozerMapperCustomizationRegistry.DozerCustomizationRegistrar customizationRegistrar) voidremoveBeanCreationStrategy(@NonNull String name) Removes aBeanCreationStrategywith a given name.voidremoveCustomFieldMapper(@NonNull String name) Removes aCustomFieldMapperwith a given name.
-
Field Details
-
DEFAULT_ORDER
public static final int DEFAULT_ORDER- See Also:
-
-
Constructor Details
-
DozerMapperCustomizationRegistry
public DozerMapperCustomizationRegistry()
-
-
Method Details
-
register
public void register(@NonNull @NonNull DozerMapperCustomizationRegistry.DozerCustomizationRegistrar customizationRegistrar) -
removeBeanCreationStrategy
Removes aBeanCreationStrategywith a given name.- Parameters:
name- of the strategy to remove
-
removeCustomFieldMapper
Removes aCustomFieldMapperwith a given name.- Parameters:
name- of the strategy to remove
-
beanCreationStrategyRegistrar
public static DozerMapperCustomizationRegistry.DozerCustomizationRegistrar<com.github.dozermapper.core.factory.BeanCreationStrategy> beanCreationStrategyRegistrar()Creates a registrar forBeanCreationStrategys. -
customFieldMapperRegistrar
public static DozerMapperCustomizationRegistry.DozerCustomizationRegistrar<com.github.dozermapper.core.CustomFieldMapper> customFieldMapperRegistrar()Creates a registrar forCustomFieldMappers.
-