Configuration via API

If you are using the MapperBuilder to define your mappings, you can declare mapping, class, and field configuration settings programmatically:

Mapper mapper = DozerBeanMapperBuilder.create()
                .withMappingBuilder(new BeanMappingBuilder() {
                    @Override
                    protected void configure() {
                        mapping(type(A.class).mapEmptyString(true),
                                type(B.class),
                                TypeMappingOptions.wildcardCaseInsensitive(true)
                        ).fields(
                                field("fieldOfA").getMethod("getTheField"),
                                field("fieldOfB"),
                                FieldsMappingOptions.oneWay()
                        );
                    }
                })
                .build();

Global configuration is currently not supported by the API.

Please see Configuration via XML for a list of the available configuration settings.

results matching ""

    No results matching ""