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 BeanCreationStrategy
s 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
Modifier and TypeClassDescriptionstatic class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DozerMapperCustomizationRegistry.DozerCustomizationRegistrar<com.github.dozermapper.core.factory.BeanCreationStrategy>
Creates a registrar forBeanCreationStrategy
s.static DozerMapperCustomizationRegistry.DozerCustomizationRegistrar<com.github.dozermapper.core.CustomFieldMapper>
Creates a registrar forCustomFieldMapper
s.void
register
(@NonNull DozerMapperCustomizationRegistry.DozerCustomizationRegistrar customizationRegistrar) void
removeBeanCreationStrategy
(@NonNull String name) Removes aBeanCreationStrategy
with a given name.void
removeCustomFieldMapper
(@NonNull String name) Removes aCustomFieldMapper
with 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 aBeanCreationStrategy
with a given name.- Parameters:
name
- of the strategy to remove
-
removeCustomFieldMapper
Removes aCustomFieldMapper
with 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 forBeanCreationStrategy
s. -
customFieldMapperRegistrar
public static DozerMapperCustomizationRegistry.DozerCustomizationRegistrar<com.github.dozermapper.core.CustomFieldMapper> customFieldMapperRegistrar()Creates a registrar forCustomFieldMapper
s.
-