@ConditionalOnClass(value=com.github.dozermapper.core.DozerBeanMapper.class) public class DozerMapperCustomizationRegistry extends Object
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.DozerConfiguration| Modifier and Type | Class and Description |
|---|---|
static class |
DozerMapperCustomizationRegistry.DozerCustomizationRegistrar<T> |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_ORDER |
| Constructor and Description |
|---|
DozerMapperCustomizationRegistry() |
| Modifier and Type | Method and Description |
|---|---|
static DozerMapperCustomizationRegistry.DozerCustomizationRegistrar<com.github.dozermapper.core.factory.BeanCreationStrategy> |
beanCreationStrategyRegistrar()
Creates a registrar for
BeanCreationStrategys. |
static DozerMapperCustomizationRegistry.DozerCustomizationRegistrar<com.github.dozermapper.core.CustomFieldMapper> |
customFieldMapperRegistrar()
Creates a registrar for
CustomFieldMappers. |
void |
register(@NonNull DozerMapperCustomizationRegistry.DozerCustomizationRegistrar customizationRegistrar) |
void |
removeBeanCreationStrategy(@NonNull String name)
Removes a
BeanCreationStrategy with a given name. |
void |
removeCustomFieldMapper(@NonNull String name)
Removes a
CustomFieldMapper with a given name. |
public static final int DEFAULT_ORDER
public void register(@NonNull
@NonNull DozerMapperCustomizationRegistry.DozerCustomizationRegistrar customizationRegistrar)
public void removeBeanCreationStrategy(@NonNull
@NonNull String name)
BeanCreationStrategy with a given name.name - of the strategy to removepublic void removeCustomFieldMapper(@NonNull
@NonNull String name)
CustomFieldMapper with a given name.name - of the strategy to removepublic static DozerMapperCustomizationRegistry.DozerCustomizationRegistrar<com.github.dozermapper.core.factory.BeanCreationStrategy> beanCreationStrategyRegistrar()
BeanCreationStrategys.public static DozerMapperCustomizationRegistry.DozerCustomizationRegistrar<com.github.dozermapper.core.CustomFieldMapper> customFieldMapperRegistrar()
CustomFieldMappers.Copyright © 2020. All rights reserved.